diff --git a/teuthology/suite.py b/teuthology/suite.py index 637a8a34b04..1c7ec8f0d28 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -54,6 +54,11 @@ combination, and will override anything in the suite. help='name for this suite', required=True, ) + parser.add_argument( + '--base', + default=None, + help='base directory for the collection(s)' + ) parser.add_argument( '--collections', metavar='DIR', @@ -114,13 +119,13 @@ combination, and will override anything in the suite. base_arg.extend(['--owner', args.owner]) for collection in args.collections: - if not os.path.isdir(collection): - print >>sys.stderr, 'Collection %s is not a directory' % collection + p = os.path.join(args.base, collection) + if not os.path.isdir(p): + print >>sys.stderr, 'Collection %s is not a directory' % p sys.exit(1) collections = [ - (collection, - os.path.basename(safepath.munge(collection))) + (os.path.join(args.base, collection), collection) for collection in args.collections ]