Skip to content

Commit

Permalink
Ensure all JSON test results are visible when PASS
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikokrock committed May 7, 2024
1 parent c289aba commit c6e6b36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testsuite/drivers/data_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def validate_result(self, process, data_file, result):
if b'<=== TEST PASSED ===>' not in process.out:
result.set_status(TestStatus.FAIL)
self.push_result(result)
else:
result.set_status(TestStatus.PASS)
self.push_result(result)
return True

def tear_down(self, previous_values, slot):
Expand Down
3 changes: 3 additions & 0 deletions testsuite/drivers/json_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ def validate_result(self, process, data_file, result):
logging.debug(f"Got: {got_str}\n<=>\nExp: {expected_str}")
result.set_status(TestStatus.FAIL)
self.push_result(result)
else:
result.set_status(TestStatus.PASS)
self.push_result(result)
return True

0 comments on commit c6e6b36

Please sign in to comment.