git://git.onelab.eu
/
nepi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e7ecb0
)
fix all-tests
py2
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sun, 1 Nov 2015 11:06:44 +0000
(12:06 +0100)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Sun, 1 Nov 2015 11:07:12 +0000
(12:07 +0100)
all-tests
patch
|
blob
|
history
diff --git
a/all-tests
b/all-tests
index
0aa6370
..
a9fc3c6
100755
(executable)
--- a/
all-tests
+++ b/
all-tests
@@
-10,7
+10,7
@@
targets="test-node test-app"
hash=$(git log -n 1 | head -1 | sed -e 's,commit ,,' -e 's,\(........\).*,\1,')
# compute output file name
hash=$(git log -n 1 | head -1 | sed -e 's,commit ,,' -e 's,\(........\).*,\1,')
# compute output file name
-output=
'all-tests.$hash'
+output=
"all-tests.$hash"
# if there is any pending change, use another name
is_pristine=""
# if there is any pending change, use another name
is_pristine=""
@@
-37,14
+37,18
@@
function all_tests () {
echo all-tests : end at; date; echo total duration $(($end-$begin)) seconds
}
echo all-tests : end at; date; echo total duration $(($end-$begin)) seconds
}
-all
-
tests >& $output
+all
_
tests >& $output
retcod=$?
# analyze this output for success or not
success=$output.success
failure=$output.failed
retcod=$?
# analyze this output for success or not
success=$output.success
failure=$output.failed
-[ "$retcod" != 0 ] && { touch $failure; exit; }
-grep -q '^FAIL' $output && { touch $failure; exit; }
-touch $success; exit
+if [ "$retcod" != 0 ]; then
+ touch $failure
+elif grep -q '^FAIL' $output; then
+ touch $failure
+else
+ touch $success
+fi