From 887e93e7e51ae81b0c908adc7a42ea1dff6ea45e Mon Sep 17 00:00:00 2001 From: Sam Lang Date: Sun, 3 Feb 2013 11:09:49 -0600 Subject: [PATCH] nuke.py: Allow name of job/run to be specified Nuke will cleanup the base test directory by default, but can cleanup the test directory for a given run if specified. Signed-off-by: Sam Lang --- teuthology/nuke.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/teuthology/nuke.py b/teuthology/nuke.py index b9e0581981..4ea5c7b9d1 100644 --- a/teuthology/nuke.py +++ b/teuthology/nuke.py @@ -54,6 +54,11 @@ def parse_args(): help='Unlock each successfully nuked machine, and output targets that' 'could not be nuked.' ) + parser.add_argument( + '-n', '--name', + metavar='NAME', + help='Name of run to cleanup' + ) args = parser.parse_args() return args @@ -341,6 +346,7 @@ def nuke_one(ctx, targets, log, should_unlock, synch_clocks, reboot_all, check_l synch_clocks=synch_clocks, reboot_all=reboot_all, teuthology_config=ctx.teuthology_config, + name=ctx.name, ) try: nuke_helper(ctx, log) -- 2.39.5