From 5f4fd2fc728368192069e4e84d2bb8c80ff4cc0e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Thu, 8 Oct 2009 21:07:23 +0200 Subject: [PATCH] tests/python/template.py: also print the command when failing --- tests/python/template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python/template.py b/tests/python/template.py index c0b1d126..687189a6 100644 --- a/tests/python/template.py +++ b/tests/python/template.py @@ -32,8 +32,8 @@ class program_test_case(unittest.TestCase): [self.status, self.output] = getstatusoutput(self.command) if expected_status != -1: assert self.status == expected_status, \ - "expected status was %s, got %s\nOutput was:\n%s" % \ - (expected_status, self.status, self.output) + "expected status was %s, got %s\nOutput was:\n%s\n command was %s" % \ + (expected_status, self.status, self.output, self.command) def array_from_text_file(filename, dtype = 'float'): return array([line.split() for line in open(filename).readlines()], -- 2.26.2