Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
35ac717c
...
35ac717cac736f8fbafc55bb7cfe1be50a199b1f
authored
2013-08-30 19:50:27 +0200
by
Laurent Jouanneau
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Cli tests: adds the casperjs output in command errors
1 parent
40a0edc2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
tests/clitests/runtests.py
tests/clitests/runtests.py
View file @
35ac717
...
...
@@ -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
)
...
...
Please
register
or
sign in
to post a comment