Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
c95bb754
Commit
c95bb754
authored
Sep 08, 2014
by
Mathieu Giraud
Committed by
Marc Duez
Sep 09, 2014
Browse files
should-to-tap.sh: dumps test + .log on stderr when a .should_get fails
This should ease debug when receiving mails from Jenkins.
parent
c9f58d7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/tests/should-to-tap.sh
View file @
c95bb754
...
...
@@ -68,6 +68,7 @@ OUTPUT_FILE=
FILE_TO_GREP
=
NO_LAUNCHER
=
IGNORE_WHITESPACES
=
1
SEPARATOR_LINE
=
"========================================================================"
TMP_TAP_FILE
=
$(
mktemp
tap.XXXX
)
...
...
@@ -174,6 +175,12 @@ while read line; do
echo
-n
"not ok"
if
[
$know_to_fail
-eq
0
]
;
then
error
=
1
echo
>
&2
;
echo
>
&2
;
echo
$SEPARATOR_LINE
>
&2
echo
"
$file
failed:"
>
&2
echo
$line
>
&2
echo
$SEPARATOR_LINE
>
&2
cat
$FILE_TO_GREP
>
&2
echo
$SEPARATOR_LINE
>
&2
;
echo
>
&2
;
echo
>
&2
fi
fi
echo
-n
" "
$test_nb
" "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment