mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
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>
This commit is contained in:
parent
96277a9f82
commit
278c921263
@ -455,6 +455,8 @@ class buildlist(object):
|
|||||||
def cleanup():
|
def cleanup():
|
||||||
if options.nocleanup:
|
if options.nocleanup:
|
||||||
return
|
return
|
||||||
|
run_cmd("stat %s" % test_tmpdir, show=True)
|
||||||
|
run_cmd("stat %s" % testbase, show=True)
|
||||||
do_print("Cleaning up ....")
|
do_print("Cleaning up ....")
|
||||||
for d in cleanup_list:
|
for d in cleanup_list:
|
||||||
run_cmd("rm -rf %s" % d)
|
run_cmd("rm -rf %s" % d)
|
||||||
@ -744,10 +746,10 @@ start_time = time.time()
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
run_cmd("rm -rf %s" % test_master)
|
run_cmd("rm -rf %s" % test_tmpdir, show=True)
|
||||||
run_cmd("rm -rf %s" % test_prefix)
|
|
||||||
run_cmd("rm -rf %s" % test_tmpdir)
|
|
||||||
os.makedirs(test_tmpdir)
|
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)
|
run_cmd("git clone --recursive --shared %s %s" % (gitroot, test_master), show=True, dir=gitroot)
|
||||||
except Exception:
|
except Exception:
|
||||||
cleanup()
|
cleanup()
|
||||||
@ -778,6 +780,8 @@ while True:
|
|||||||
|
|
||||||
cleanup_list.append(gitroot + "/autobuild.pid")
|
cleanup_list.append(gitroot + "/autobuild.pid")
|
||||||
|
|
||||||
|
do_print(errstr)
|
||||||
|
|
||||||
blist.kill_kids()
|
blist.kill_kids()
|
||||||
if options.tail:
|
if options.tail:
|
||||||
do_print("waiting for tail to flush")
|
do_print("waiting for tail to flush")
|
||||||
@ -785,7 +789,6 @@ if options.tail:
|
|||||||
|
|
||||||
elapsed_time = time.time() - start_time
|
elapsed_time = time.time() - start_time
|
||||||
if status == 0:
|
if status == 0:
|
||||||
do_print(errstr)
|
|
||||||
if options.passcmd is not None:
|
if options.passcmd is not None:
|
||||||
do_print("Running passcmd: %s" % options.passcmd)
|
do_print("Running passcmd: %s" % options.passcmd)
|
||||||
run_cmd(options.passcmd, dir=test_master)
|
run_cmd(options.passcmd, dir=test_master)
|
||||||
|
Loading…
Reference in New Issue
Block a user