Skip to content

Commit

Permalink
Merge pull request #1625 from ideepika/wip-machine-type
Browse files Browse the repository at this point in the history
teuthology-suite: add default machine type(smithi)
  • Loading branch information
kshtsk authored May 27, 2021
2 parents 0c70841 + 2a15c89 commit f359b10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

doc = """
usage: teuthology-suite --help
teuthology-suite [-v | -vv ] --machine-type <type> --suite <suite> [options] [<config_yaml>...]
teuthology-suite [-v | -vv ] --machine-type <type> --rerun <name> [options] [<config_yaml>...]
teuthology-suite [-v | -vv ] --suite <suite> [options] [<config_yaml>...]
teuthology-suite [-v | -vv ] --rerun <name> [options] [<config_yaml>...]
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
Expand Down
7 changes: 5 additions & 2 deletions teuthology/suite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f359b10

Please sign in to comment.