diff --git a/scripts/suite.py b/scripts/suite.py index e826d57a3e..8097b14545 100644 --- a/scripts/suite.py +++ b/scripts/suite.py @@ -7,8 +7,8 @@ doc = """ usage: teuthology-suite --help - teuthology-suite [-v | -vv ] --machine-type --suite [options] [...] - teuthology-suite [-v | -vv ] --machine-type --rerun [options] [...] + teuthology-suite [-v | -vv ] --suite [options] [...] + teuthology-suite [-v | -vv ] --rerun [options] [...] Run a suite of ceph integration tests. A suite is a directory containing facets. A facet is a directory containing config snippets. Running a suite diff --git a/teuthology/suite/__init__.py b/teuthology/suite/__init__.py index 500720b3ab..adca68a9a2 100644 --- a/teuthology/suite/__init__.py +++ b/teuthology/suite/__init__.py @@ -112,10 +112,13 @@ def main(args): teuthology.log.setLevel(logging.DEBUG) if not conf.machine_type or conf.machine_type == 'None': - schedule_fail("Must specify a machine_type") + if not config.default_machine_type or config.default_machine_type == 'None': + schedule_fail("Must specify a machine_type") + else: + conf.machine_type = config.default_machine_type elif 'multi' in conf.machine_type: schedule_fail("'multi' is not a valid machine_type. " + - "Maybe you want 'plana,mira,burnupi' or similar") + "Maybe you want 'gibba,smithi,mira' or similar") if conf.email: config.results_email = conf.email