summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-01-11 14:42:08 +0100
committerStefan Metzmacher <metze@samba.org>2017-01-12 15:35:13 +0100
commitf9e188747753225e77f254fe41aad95ff11fec53 (patch)
treec768e9dfde7140d94f8b1698e6ea62019da1c57a /script
parentb9199945e7c28f8e5603727896c2af295376dc5b (diff)
downloadsamba-f9e188747753225e77f254fe41aad95ff11fec53.tar.gz
script/autobuild.py: cleanup the task subdirs when they're done.
This hopefully reduces the used space on the memdisk. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@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 ead6319de75..ddf02aba3a6 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -279,6 +279,7 @@ class builder(object):
self.sdir = "%s/%s" % (testbase, self.tag)
self.prefix = "%s/%s" % (test_prefix, self.tag)
run_cmd("rm -rf %s" % self.sdir)
+ run_cmd("rm -rf %s" % self.prefix)
if cp:
run_cmd("cp --recursive --link --archive %s %s" % (test_master, self.sdir), dir=test_master, show=True)
else:
@@ -287,6 +288,9 @@ class builder(object):
def start_next(self):
if self.next == len(self.sequence):
+ if not options.nocleanup:
+ run_cmd("rm -rf %s" % self.sdir)
+ run_cmd("rm -rf %s" % self.prefix)
print '%s: Completed OK' % self.name
self.done = True
return