]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc: replace : with - in testdir name
authorSage Weil <sage@inktank.com>
Mon, 18 Feb 2013 06:13:45 +0000 (22:13 -0800)
committerSage Weil <sage@inktank.com>
Mon, 18 Feb 2013 06:13:45 +0000 (22:13 -0800)
The :'s break the list in $PATH.

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/misc.py

index bb95550f8c48d21a97c825ea86d8a1b690d91532..1a17ea2eaa2e32f10d633184858759e2ef2c3f26 100644 (file)
@@ -30,7 +30,8 @@ def get_testdir(ctx):
         log.debug('with name basedir: {b}'.format(b=basedir))
         return '{basedir}/{rundir}'.format(
                     basedir=basedir,
-                    rundir=ctx.name)
+                    rundir=ctx.name.replace(':','-'),  # : breaks the $PATH list
+                    )
     else:
         log.debug('basedir: {b}'.format(b=basedir))
         return '{basedir}/{user}-{stamp}'.format(