summaryrefslogtreecommitdiff
path: root/cmdtest
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-15 20:40:56 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-15 20:40:56 +0100
commit3440a71bc3a9193c6ce48f30c58055b74c7c3e1c (patch)
treef29ee5aaef180f628bea3aeac278bea481768e0b /cmdtest
parent749aa6940574e1df1ab73ac73d028e4301e7676f (diff)
downloadcmdtest-3440a71bc3a9193c6ce48f30c58055b74c7c3e1c.tar.gz
Fix parsing of foo.exit.
Diffstat (limited to 'cmdtest')
-rwxr-xr-xcmdtest4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdtest b/cmdtest
index 7fc0d67..f2757f9 100755
--- a/cmdtest
+++ b/cmdtest
@@ -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)