Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds .data, fixes --checkdir #74

Merged
merged 12 commits into from
Sep 29, 2017
11 changes: 6 additions & 5 deletions check50.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,14 +473,15 @@ def stdout(self, output=None, str_output=None, timeout=1):
else:
expect = self.child.expect_exact

if str_output is None:
str_output = output

if output == EOF:
str_output = "EOF"
self.test.log.append("checking for EOF...")
else:
if str_output is None:
str_output = output
output = output.replace("\n", "\r\n")
self.test.log.append("checking for output \"{}\"...".format(str_output))

self.test.log.append("checking for output \"{}\"...".format(str_output))

try:
expect(output, timeout=timeout)
Expand All @@ -490,7 +491,7 @@ def stdout(self, output=None, str_output=None, timeout=1):
result += self.child.after
raise Error(Mismatch(str_output, result.replace("\r\n", "\n")))
except TIMEOUT:
raise Error("did not find output {}".format(Mismatch.raw(str_output)))
raise Error("did not find {}".format(Mismatch.raw(str_output)))
except UnicodeDecodeError:
raise Error("output not valid ASCII text")
except Exception:
Expand Down