Skip to content
Snippets Groups Projects
Commit d4844f0f authored by Guido Trotter's avatar Guido Trotter
Browse files

Make instance start/stop skippable at burnin time

Even though burnin was born just to do that test it now contains a lot more
things one might try, so it makes sense to make instance start/stop optional
too.

This creates a burnin that at the bare minimum tests instance create and
remove, if all the --no options are specified, but usually does a lot more.

Reviewed-by: iustinp
parent bd5e77f9
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,9 @@ class Burner(object): ...@@ -125,6 +125,9 @@ class Burner(object):
parser.add_option("--no-importexport", dest="do_importexport", parser.add_option("--no-importexport", dest="do_importexport",
help="Skip instance export/import", action="store_false", help="Skip instance export/import", action="store_false",
default=True) default=True)
parser.add_option("--no-startstop", dest="do_startstop",
help="Skip instance stop/start", action="store_false",
default=True)
parser.add_option("-t", "--disk-template", dest="disk_template", parser.add_option("-t", "--disk-template", dest="disk_template",
choices=("plain", "remote_raid1", "drbd"), choices=("plain", "remote_raid1", "drbd"),
default="remote_raid1", default="remote_raid1",
...@@ -359,7 +362,9 @@ class Burner(object): ...@@ -359,7 +362,9 @@ class Burner(object):
if opts.do_importexport: if opts.do_importexport:
self.ImportExport() self.ImportExport()
self.StopStart() if opts.do_startstop:
self.StopStart()
has_err = False has_err = False
finally: finally:
if has_err: if has_err:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment