Commit 35ac717c 35ac717cac736f8fbafc55bb7cfe1be50a199b1f by Laurent Jouanneau

Cli tests: adds the casperjs output in command errors

1 parent 40a0edc2
...@@ -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)
......