summaryrefslogtreecommitdiff
path: root/cmdtest
diff options
context:
space:
mode:
Diffstat (limited to 'cmdtest')
-rwxr-xr-xcmdtest3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdtest b/cmdtest
index 581b07a..b8c6efa 100755
--- a/cmdtest
+++ b/cmdtest
@@ -209,7 +209,8 @@ class CommandTester(cliapp.Application):
argv = ['diff', '-u', expected_name, actual_name]
with open(diff_name, 'w') as f:
exit, out, err = self.runcmd_unchecked(argv, stdout=f)
- return out
+ with open(diff_name, 'r') as f:
+ return f.read()
def report_timings(self):