Skip to content

Commit

Permalink
Add SEGV run error to vspec wrapper to prevent false positive test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
actionshrimp committed Aug 24, 2013
1 parent 13df247 commit 8f6ed26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def format_vspec_output(output):
def get_vspec_pass_fail(output):
output_lines = output.split('\n')
passed = len(filter(lambda x: x.startswith("ok "), output_lines))
total = len(filter(lambda x: x.startswith("ok ") or x.startswith("not ok "), output_lines))
total = len(filter(lambda x: x.startswith("ok ") \
or x.startswith("not ok ") \
or "SEGV" in x, output_lines))

return passed, total

Expand Down

0 comments on commit 8f6ed26

Please sign in to comment.