aboutsummaryrefslogtreecommitdiff
path: root/auto_delete_nightly_test_data.py
diff options
context:
space:
mode:
authorcmtice <cmtice@google.com>2015-02-04 17:37:43 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-02-05 23:56:14 +0000
commit37828578795f39daadcebe05cacc522d629b5c9c (patch)
tree48fbcbdb8099c12f2d30b293190ecb49d61cc9fd /auto_delete_nightly_test_data.py
parentd54f980a7349e06059df5c830643e34aac79b86e (diff)
downloadtoolchain-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-xauto_delete_nightly_test_data.py8
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