Cli tests: adds the casperjs output in command errors
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -49,7 +49,7 @@ class CasperExecTestBase(unittest.TestCase): | ... | @@ -49,7 +49,7 @@ class CasperExecTestBase(unittest.TestCase): |
49 | except subprocess.CalledProcessError as err: | 49 | except subprocess.CalledProcessError as err: |
50 | if failing: | 50 | if failing: |
51 | return err.output.decode('utf-8') | 51 | return err.output.decode('utf-8') |
52 | raise IOError('Command %s exited: %s' % (cmd, err)) | 52 | raise IOError('Command %s exited: %s \n %s' % (cmd, err, err.output.decode('utf-8'))) |
53 | 53 | ||
54 | def assertCommandOutputEquals(self, cmd, result, **kwargs): | 54 | def assertCommandOutputEquals(self, cmd, result, **kwargs): |
55 | self.assertEqual(self.runCommand(cmd), result) | 55 | self.assertEqual(self.runCommand(cmd), result) | ... | ... |
-
Please register or sign in to post a comment