Skip to content

Commit

Permalink
fix(reana-dev): classify error-throwing tests as failed (reanahub#817)
Browse files Browse the repository at this point in the history
If a workflow throws an error while being tested (in run-example), it is now classified as failing
  • Loading branch information
ajclyall committed Aug 22, 2024
1 parent 30392de commit 217a7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana/reana_dev/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,12 +561,12 @@ def _get_test_matrix_summary() -> str:
component,
return_output=True,
)

if re.findall(r".*failed$", tests, re.MULTILINE):
run_statistics["failed"].append(workflow_name)
else:
run_statistics["passed"].append(workflow_name)
except SystemExit:
run_statistics["failed"].append(workflow_name)
display_message(
f"Workflow {workflow_name} has no tests.", component
)
Expand Down

0 comments on commit 217a7c7

Please sign in to comment.