Skip to content

Commit

Permalink
Fix a bug in the output parsing for VVT: the line with the result som…
Browse files Browse the repository at this point in the history
…etimes contains more details, which did not match the previous check
  • Loading branch information
mdangl committed Mar 28, 2018
1 parent 429e96e commit 60125f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchexec/tools/vvt.py
Expand Up @@ -52,11 +52,11 @@ def cmdline(self, executable, options, tasks, propertyfile, rlimits):

def determine_result(self, returncode, returnsignal, output, isTimeOut):
try:
if "No bug found.\n" in output:
return result.RESULT_TRUE_PROP
elif "Bug found:\n" in output:
return result.RESULT_FALSE_REACH
else:
return result.RESULT_UNKNOWN
for line in output:
if line.startswith("No bug found"):
return result.RESULT_TRUE_PROP
elif line.startswith("Bug found:"):
return result.RESULT_FALSE_REACH
return result.RESULT_UNKNOWN
except Exception:
return result.RESULT_UNKNOWN

0 comments on commit 60125f5

Please sign in to comment.