Skip to content

Commit c6e6b36

Browse files
committed
Ensure all JSON test results are visible when PASS
1 parent c289aba commit c6e6b36

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

testsuite/drivers/data_validation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def validate_result(self, process, data_file, result):
5454
if b'<=== TEST PASSED ===>' not in process.out:
5555
result.set_status(TestStatus.FAIL)
5656
self.push_result(result)
57+
else:
58+
result.set_status(TestStatus.PASS)
59+
self.push_result(result)
5760
return True
5861

5962
def tear_down(self, previous_values, slot):

testsuite/drivers/json_validation.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ def validate_result(self, process, data_file, result):
3737
logging.debug(f"Got: {got_str}\n<=>\nExp: {expected_str}")
3838
result.set_status(TestStatus.FAIL)
3939
self.push_result(result)
40+
else:
41+
result.set_status(TestStatus.PASS)
42+
self.push_result(result)
4043
return True

0 commit comments

Comments
 (0)