1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

script/autobuild.py: create tmpdir for each try and export it as TMPDIR

This way the compiler and other tools hopefully don't use /tmp
anymore.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-12-16 13:35:36 +01:00 committed by Jeremy Allison
parent 49de2f3a79
commit 60a8e70fe1

View File

@ -709,6 +709,8 @@ if options.retry:
testbase = "%s/b%u" % (options.testbase, os.getpid()) testbase = "%s/b%u" % (options.testbase, os.getpid())
test_master = "%s/master" % testbase test_master = "%s/master" % testbase
test_prefix = "%s/prefix" % testbase test_prefix = "%s/prefix" % testbase
test_tmpdir = "%s/tmp" % testbase
os.environ['TMPDIR'] = test_tmpdir
# get the top commit message, for emails # get the top commit message, for emails
top_commit_msg = run_cmd("git log -1", dir=gitroot, output=True) top_commit_msg = run_cmd("git log -1", dir=gitroot, output=True)
@ -732,6 +734,8 @@ while True:
try: try:
run_cmd("rm -rf %s" % test_master) run_cmd("rm -rf %s" % test_master)
run_cmd("rm -rf %s" % test_prefix) run_cmd("rm -rf %s" % test_prefix)
run_cmd("rm -rf %s" % test_tmpdir)
os.makedirs(test_tmpdir)
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()