Revision 8c67f82e snf-tools/synnefo_tools/burnin/common.py
b/snf-tools/synnefo_tools/burnin/common.py | ||
---|---|---|
139 | 139 |
system_user = None |
140 | 140 |
images = None |
141 | 141 |
flavors = None |
142 |
delete_stale = False |
|
142 | 143 |
|
143 | 144 |
@classmethod |
144 | 145 |
def setUpClass(cls): # noqa |
... | ... | |
443 | 444 |
|
444 | 445 |
# -------------------------------------------------------------------- |
445 | 446 |
# Initialize Burnin |
446 |
def initialize(opts, testsuites): |
|
447 |
def initialize(opts, testsuites, stale_testsuites):
|
|
447 | 448 |
"""Initalize burnin |
448 | 449 |
|
449 | 450 |
Initialize our logger and burnin state |
... | ... | |
467 | 468 |
BurninTests.system_user = opts.system_user |
468 | 469 |
BurninTests.flavors = opts.flavors |
469 | 470 |
BurninTests.images = opts.images |
471 |
BurninTests.delete_stale = opts.delete_stale |
|
470 | 472 |
BurninTests.run_id = SNF_TEST_PREFIX + \ |
471 | 473 |
datetime.datetime.strftime(datetime.datetime.now(), "%Y%m%d%H%M%S") |
472 | 474 |
|
473 | 475 |
# Choose tests to run |
476 |
if opts.show_stale: |
|
477 |
# We will run the stale_testsuites |
|
478 |
return stale_testsuites |
|
479 |
|
|
474 | 480 |
if opts.tests != "all": |
475 | 481 |
testsuites = opts.tests |
476 | 482 |
if opts.exclude_tests is not None: |
Also available in: Unified diff