diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-15 20:40:56 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-15 20:40:56 +0100 |
commit | 3440a71bc3a9193c6ce48f30c58055b74c7c3e1c (patch) | |
tree | f29ee5aaef180f628bea3aeac278bea481768e0b /cmdtest | |
parent | 749aa6940574e1df1ab73ac73d028e4301e7676f (diff) | |
download | cmdtest-3440a71bc3a9193c6ce48f30c58055b74c7c3e1c.tar.gz |
Fix parsing of foo.exit.
Diffstat (limited to 'cmdtest')
-rwxr-xr-x | cmdtest | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -117,10 +117,10 @@ class CommandTester(cliapp.Application): env=self.add_to_env(), stdin=stdin) - expected_exit = test.exit or 0 + expected_exit = int(self.cat(test.exit or '/dev/null').strip() or '0') expected_stdout = self.cat(test.stdout or '/dev/null') expected_stderr = self.cat(test.stderr or '/dev/null') - + errors = [] if out != expected_stdout: diff = self.diff(expected_stdout, out) |