diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-01-11 14:42:08 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-01-12 15:35:13 +0100 |
commit | f9e188747753225e77f254fe41aad95ff11fec53 (patch) | |
tree | c768e9dfde7140d94f8b1698e6ea62019da1c57a /script | |
parent | b9199945e7c28f8e5603727896c2af295376dc5b (diff) | |
download | samba-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-x | script/autobuild.py | 4 |
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 |