Commit 3326e16f authored by Hardik Juneja's avatar Hardik Juneja

resiliencytests: add standanlone test runner script

parent 57997ec6
......@@ -99,6 +99,7 @@ setup(name=name,
'monitor.configwrite = slapos.monitor.monitor_config_write:main',
'runResiliencyUnitTestTestNode = slapos.resiliencytest:runUnitTest',
'runResiliencyScalabilityTestNode = slapos.resiliencytest:runResiliencyTest',
'runStandaloneResiliencyTest = slapos.resiliencytest:runStandaloneResiliencyTest',
'runApacheDex = slapos.apachedex:main',
'lampconfigure = slapos.lamp:run [lampconfigure]',
'onetimedownload = slapos.onetimedownload:main',
......
......@@ -289,3 +289,19 @@ def runUnitTest():
raise
finally:
os.remove(fname)
def runStandaloneResiliencyTest():
"""
Used to bypass the Test Node infrastructure and manually run a test.
Useful for running the test without any infrastructure.
"""
parser = argparse.ArgumentParser()
parser.add_argument('--test-suite-title')
parser.add_argument('additional_arguments', nargs=argparse.REMAINDER)
arguments = parser.parse_args()
runTestSuite(
arguments.test_suite_title,
arguments.additional_arguments,
setupLogging()[0].info
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment