tests/python/template.py: also print the command when failing
authorPaul Brossier <piem@piem.org>
Thu, 8 Oct 2009 19:07:23 +0000 (21:07 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 8 Oct 2009 19:07:23 +0000 (21:07 +0200)
tests/python/template.py

index c0b1d126fa00195f34f99195664951b206ddb434..687189a6cb9c20eed798b36593d370e993120085 100644 (file)
@@ -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()],