mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
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> (cherry picked from commit f9e188747753225e77f254fe41aad95ff11fec53)
This commit is contained in:
parent
3cd5d41333
commit
a7273002e9
@ -278,6 +278,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:
|
||||
@ -286,6 +287,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user