diff options
author | cmtice <cmtice@google.com> | 2015-02-04 17:37:43 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-05 23:56:14 +0000 |
commit | 37828578795f39daadcebe05cacc522d629b5c9c (patch) | |
tree | 48fbcbdb8099c12f2d30b293190ecb49d61cc9fd /auto_delete_nightly_test_data.py | |
parent | d54f980a7349e06059df5c830643e34aac79b86e (diff) | |
download | toolchain-utils-37828578795f39daadcebe05cacc522d629b5c9c.tar.gz |
Update command_executer.py to allow a silent execution mode,
where it does not attempt to write any logs.
Update auto_delete_nightly_test_data.py to use the
command_executer in silent mode (so it doesn't run out of space
writing logs on the disk it is trying to clean up).
Change-Id: Id1c2c5f171a2d3854d3b53516ead31050da647b4
Reviewed-on: https://chrome-internal-review.googlesource.com/195877
Reviewed-by: Han Shen <shenhan@google.com>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'auto_delete_nightly_test_data.py')
-rwxr-xr-x | auto_delete_nightly_test_data.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auto_delete_nightly_test_data.py b/auto_delete_nightly_test_data.py index fc0e259b..a7bbe9d3 100755 --- a/auto_delete_nightly_test_data.py +++ b/auto_delete_nightly_test_data.py @@ -20,7 +20,7 @@ def CleanNumberedDir(s, dry_run=False): """Deleted directories under each dated_dir.""" chromeos_dirs = [os.path.join(s, x) for x in os.listdir(s) if misc.IsChromeOsTree(os.path.join(s, x))] - ce = command_executer.GetCommandExecuter() + ce = command_executer.GetCommandExecuter(log_level="none") all_succeeded = True for cd in chromeos_dirs: if misc.DeleteChromeOsTree(cd, dry_run=dry_run): @@ -76,9 +76,9 @@ def ProcessArguments(argv): default=False, action='store_true', help='Only print command line, do not execute anything.') parser.add_option('--days_to_perserve', dest='days_to_preserve', default=3, - help=('Specify the number of days, test data generated ' - 'on these days will *NOT* be deleted. ' - 'Defaults to 3.')) + help=('Specify the number of days (not including today), ' + 'test data generated on these days will *NOT* be ' + 'deleted. Defaults to 3.')) options, _ = parser.parse_args(argv) return options |