[infra] Cleanup better after BuildStats

Followup to https://skia-review.googlesource.com/c/skia/+/436816

Change-Id: I564c5a160588e5d9f843e297bf04baea50024dc5
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/436896
Reviewed-by: Eric Boren <borenet@google.com>
This commit is contained in:
Kevin Lubick 2021-08-05 08:59:57 -04:00
parent 8e2d89465a
commit daa9717416

View File

@ -39,6 +39,10 @@ def main():
'%s/%s_tree.tar.gz' % (out_dir, input_base),
'.'])
# Delete our temporary directory
subprocess.check_call(['docker', 'run',
'--volume', '%s:/OUT' % temp_out,
DOCKER_IMAGE, '/bin/sh', '-c', 'rm -rf /OUT/*'])
if __name__ == '__main__':
main()