diff options
author | Calin Juravle <calin@google.com> | 2015-01-16 11:58:49 +0000 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2015-01-16 12:13:17 +0000 |
commit | f914706660468ce37036fb0b529880c691fb55f5 (patch) | |
tree | 21a5d66f88923239f6d6d32482fd796f3da00c03 /tools/checker.py | |
parent | 36740379b9b1c81b7eb06ea9c9df411d0a9a765e (diff) | |
download | android_art-f914706660468ce37036fb0b529880c691fb55f5.tar.gz android_art-f914706660468ce37036fb0b529880c691fb55f5.tar.bz2 android_art-f914706660468ce37036fb0b529880c691fb55f5.zip |
Add --no-clean to checker (keeps the generated files around)
Change-Id: Iefef18f3456f79684077912e1f8b614d56e13ca6
Diffstat (limited to 'tools/checker.py')
-rwxr-xr-x | tools/checker.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/checker.py b/tools/checker.py index bb2ac0c867..24784cec6d 100755 --- a/tools/checker.py +++ b/tools/checker.py @@ -700,6 +700,8 @@ def ParseArguments(): help="print the contents of an output group") parser.add_argument("-q", "--quiet", action="store_true", help="print only errors") + parser.add_argument("--no-clean", dest="no_clean", action="store_true", + help="don't clean up generated files") return parser.parse_args() @@ -763,4 +765,7 @@ if __name__ == "__main__": else: RunChecks(args.check_prefix, args.source_path, args.tested_file) finally: - shutil.rmtree(tempFolder) + if args.no_clean: + print("Files left in %s" % tempFolder) + else: + shutil.rmtree(tempFolder) |