]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
nuke.py: Allow name of job/run to be specified
authorSam Lang <sam.lang@inktank.com>
Sun, 3 Feb 2013 17:09:49 +0000 (11:09 -0600)
committerSam Lang <sam.lang@inktank.com>
Sun, 3 Feb 2013 17:09:49 +0000 (11:09 -0600)
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 <sam.lang@inktank.com>
teuthology/nuke.py

index b9e05819811996a8ab8cb2a95908698987643357..4ea5c7b9d1cc46d50fa6def00898e04c6afa4f96 100644 (file)
@@ -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)