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):
except subprocess.CalledProcessError as err:
if failing:
return err.output.decode('utf-8')
raise IOError('Command %s exited: %s' % (cmd, err))
raise IOError('Command %s exited: %s \n %s' % (cmd, err, err.output.decode('utf-8')))
def assertCommandOutputEquals(self, cmd, result, **kwargs):
self.assertEqual(self.runCommand(cmd), result)
......