summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-12-16 13:35:36 +0100
committerJeremy Allison <jra@samba.org>2016-12-17 19:16:14 +0100
commit60a8e70fe1cb278295ededc41015b09cecb00d48 (patch)
tree8eccf5705dda2176f2bc22e56e6092f65512b497 /script
parent49de2f3a79bd12a7f7bc17bc5f4bae36d23f2489 (diff)
downloadsamba-60a8e70fe1cb278295ededc41015b09cecb00d48.tar.gz
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>
Diffstat (limited to 'script')
-rwxr-xr-xscript/autobuild.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/autobuild.py b/script/autobuild.py
index 9fc5c90e12f..3d76130b57d 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -709,6 +709,8 @@ if options.retry:
testbase = "%s/b%u" % (options.testbase, os.getpid())
test_master = "%s/master" % testbase
test_prefix = "%s/prefix" % testbase
+test_tmpdir = "%s/tmp" % testbase
+os.environ['TMPDIR'] = test_tmpdir
# get the top commit message, for emails
top_commit_msg = run_cmd("git log -1", dir=gitroot, output=True)
@@ -732,6 +734,8 @@ while True:
try:
run_cmd("rm -rf %s" % test_master)
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)
except Exception:
cleanup()