diff options
Diffstat (limited to 'tests/stress_ng/run_tests.py')
-rw-r--r-- | tests/stress_ng/run_tests.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/stress_ng/run_tests.py b/tests/stress_ng/run_tests.py index ec6822b..22ca5c5 100644 --- a/tests/stress_ng/run_tests.py +++ b/tests/stress_ng/run_tests.py @@ -35,6 +35,8 @@ def testbase(): instance = StressngBase() #run test scripts instance.run_test_fun() + #write test suite info to file + instance.write_run_info() yield instance @@ -43,7 +45,11 @@ def testbase(): def precheck(): instance = StressngBase() - return instance.precheck() + output = instance.precheck() + if(output == False): + #write test suite info to file + instance.write_skip_info() + return output skip_msg = "The current environment does not match the test requirements." pytestmark = pytest.mark.skipif(precheck() == False, reason = skip_msg) |