From 85e3c12681faca0519ca995a82feeb7709397ca2 Mon Sep 17 00:00:00 2001 From: yanxk Date: Sat, 3 Sep 2022 16:24:32 +0800 Subject: agl-test-framework: add test 'crashme' 'agl-test' modified, now, usr would not run dangerous tests like this 'crashme' unless they do self selection by '-m' pytest option. Set default to 'not dangerous'. a new marker 'dangerous' has been add to the pytest.ini. add new method into the agl_test_base.py, to help get path of the 'spec.json', this file help stress tests like 'crashme' to run under different stress levels. for run_tests.py, modifications focus on how to run 'crashme' under that different levels. new marker 'order' would always ensure this 'crashme' test to be placed as the so called 'last' test of all. Bug-AGL: SPEC-4345 Signed-off-by: yanxk Change-Id: Icb36d7c5c52430d89787f4373a2852b1b03ec8a6 --- plugins/agl_test_base.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/agl_test_base.py') diff --git a/plugins/agl_test_base.py b/plugins/agl_test_base.py index 0e3a153..bd39335 100644 --- a/plugins/agl_test_base.py +++ b/plugins/agl_test_base.py @@ -29,6 +29,9 @@ class AGLBaseTest: def get_workdir(self): return conf.WORK_DIR + self.name + "/resource/" + def get_spec_path(self): + return conf.WORK_DIR + self.name + "/spec.json" + def append_one_caseinfo(name, value, status): self.case_info_list[name] = [name, value, status] -- cgit