]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: Fix cleanup of test dir
authorSam Lang <sam.lang@inktank.com>
Fri, 1 Feb 2013 17:45:04 +0000 (11:45 -0600)
committerSam Lang <sam.lang@inktank.com>
Fri, 1 Feb 2013 17:45:04 +0000 (11:45 -0600)
Nuke used to remove /tmp/cephtest, now it tries to
remove the test dir, which it may not have the name
for.  Instead of removing the test dir, we just
remove the base directory for all test directories,
which may or may not be /tmp/cephtest.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
teuthology/nuke.py

index 78d699126afc65d15a21027aeb19c88957542142..dfadd93df30b352778d337d46cb688a2ec12bd8b 100644 (file)
@@ -228,7 +228,7 @@ def remove_testing_tree(ctx, log):
         proc = remote.run(
             args=[
                 'sudo', 'rm', '-rf',
-                get_testdir(ctx),
+                get_testdir_base(ctx),
                 ],
             wait=False,
             )
@@ -373,6 +373,7 @@ def nuke_helper(ctx, log):
             # not powered on or can't get IPMI status.  Try to power on
             console.power_on()
             # try to get status again, waiting for login prompt this time
+            log.info('checking console status of %s' % cname)
             if not console.check_status(100):
                 log.error('Failed to get console status for %s, disabling console...' % cname)
             log.info('console ready on %s' % cname)