diff options
author | Ying Chen <chying@google.com> | 2016-06-24 17:22:23 -0700 |
---|---|---|
committer | Ying Chen <chying@google.com> | 2016-06-24 17:22:23 -0700 |
commit | 03a52424e029c2bee4124b983f43dbe7046963d5 (patch) | |
tree | 0995924676e6efd950200e8e81551703a9e3e34e | |
parent | c4813d28f544066849e43baa229cf4e9b5846a6a (diff) | |
download | adt-infra-03a52424e029c2bee4124b983f43dbe7046963d5.tar.gz |
Remove image files after unzip to save disk space
Change-Id: I8fb6db737436fbf421e5552bc2737cf72dd4f1ca
-rw-r--r-- | emu_test/utils/download_unzip_image.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emu_test/utils/download_unzip_image.py b/emu_test/utils/download_unzip_image.py index 48fba231..72a38a99 100644 --- a/emu_test/utils/download_unzip_image.py +++ b/emu_test/utils/download_unzip_image.py @@ -115,6 +115,7 @@ def download_and_unzip(): unzip_addon_dir(file_name, dst_dir) else: verbose_call(['unzip', '-o', file_name, '-d', dst_dir]) + verbose_call(['rm', '-rf', file_name]) else: raise ValueError('Error: Unknown branch!') except Exception as e: |