summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-01-11 14:13:00 +0100
committerStefan Metzmacher <metze@samba.org>2017-01-12 15:35:14 +0100
commit278c921263550c1473df8944260bbb4e62a0e0e6 (patch)
treee5b87294b8a7850222537cb55c6cbc986ccfea65 /script
parent96277a9f82379c7fedf36ca13644eb3493dcd1e2 (diff)
downloadsamba-278c921263550c1473df8944260bbb4e62a0e0e6.tar.gz
script/autobuild.py: try to make TMPDIR handling more verbose
This hopefully gives some hints regarding flakey tests where the tmpdir is not available. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index 3595defa3c6..f1d48c42c9d 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -455,6 +455,8 @@ class buildlist(object):
def cleanup():
if options.nocleanup:
return
+ run_cmd("stat %s" % test_tmpdir, show=True)
+ run_cmd("stat %s" % testbase, show=True)
do_print("Cleaning up ....")
for d in cleanup_list:
run_cmd("rm -rf %s" % d)
@@ -744,10 +746,10 @@ start_time = time.time()
while True:
try:
- run_cmd("rm -rf %s" % test_master)
- run_cmd("rm -rf %s" % test_prefix)
- run_cmd("rm -rf %s" % test_tmpdir)
+ run_cmd("rm -rf %s" % test_tmpdir, show=True)
os.makedirs(test_tmpdir)
+ run_cmd("stat %s" % test_tmpdir, show=True)
+ run_cmd("stat %s" % testbase, show=True)
run_cmd("git clone --recursive --shared %s %s" % (gitroot, test_master), show=True, dir=gitroot)
except Exception:
cleanup()
@@ -778,6 +780,8 @@ while True:
cleanup_list.append(gitroot + "/autobuild.pid")
+do_print(errstr)
+
blist.kill_kids()
if options.tail:
do_print("waiting for tail to flush")
@@ -785,7 +789,6 @@ if options.tail:
elapsed_time = time.time() - start_time
if status == 0:
- do_print(errstr)
if options.passcmd is not None:
do_print("Running passcmd: %s" % options.passcmd)
run_cmd(options.passcmd, dir=test_master)