diff options
Diffstat (limited to 'plugins/agl_test_ptest_base.py')
-rw-r--r-- | plugins/agl_test_ptest_base.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/plugins/agl_test_ptest_base.py b/plugins/agl_test_ptest_base.py index 89eb554..4e261bc 100644 --- a/plugins/agl_test_ptest_base.py +++ b/plugins/agl_test_ptest_base.py @@ -19,17 +19,18 @@ class PTESTBase(AGLBaseTest): def run_case(self, case_id): case_info = self.get_caseinfo_by_name(case_id) - if (case_info[1] == "PASS"): - case_info[2] = "passed" - elif (case_info[1] == "FAIL"): - case_info[2] = "failed" - elif (case_info[1] == "SKIP"): - case_info[2] = "skipped" - else: - case_info[2] = "failed" + if (case_info[2] == ""): + if (case_info[1] == "PASS"): + case_info[2] = "passed" + elif (case_info[1] == "FAIL"): + case_info[2] = "failed" + elif (case_info[1] == "SKIP"): + case_info[2] = "skipped" + else: + case_info[2] = "failed" self.update_caseinfo_by_name(case_id, case_info) - assert case_info[2] == "passed" or case_info[2] == "skipped" + assert case_info[2] == "passed" or case_info[2] == "skipped" or case_info[2] == "xpassed" def precheck(self): # check for common |