Skip to content

Commit

Permalink
Fix runtime tests
Browse files Browse the repository at this point in the history
The byte stream needs to be decoded before it can be compared to the
string `running...`.
  • Loading branch information
fbs authored and danobi committed May 21, 2019
1 parent ea8a7e4 commit a05ee59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils.py
Expand Up @@ -102,8 +102,8 @@ def run_test(test):
output = ""

while p.poll() is None:
nextline = p.stdout.readline()
output += nextline.decode()
nextline = p.stdout.readline().decode()
output += nextline
if nextline == "Running...\n":
signal.alarm(test.timeout or DEFAULT_TIMEOUT)
if not after and test.after:
Expand Down

0 comments on commit a05ee59

Please sign in to comment.