Skip to content

Commit becf4c1

Browse files
committed
tests/bsim: Fix not detecting failures
b033913 Broke the check for failed bsim tests. Let's fix it. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 4959a02 commit becf4c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/bsim/run_parallel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ if [ `command -v parallel` ]; then
7878
parallel '
7979
echo "<testcase name=\"{}\" time=\"0\">"
8080
start=$(date +%s%N)
81-
{} $@ &> {#}.log
81+
{} $@ &> {#}.log ; result=$?
8282
dur=$(($(date +%s%N) - $start))
8383
dur_s=$(awk -vdur=$dur "BEGIN { printf(\"%0.3f\", dur/1000000000)}")
84-
if [ $? -ne 0 ]; then
84+
if [ $result -ne 0 ]; then
8585
(>&2 echo -e "\e[91m{} FAILED\e[39m ($dur_s s)")
8686
(>&2 cat {#}.log)
8787
echo "<failure message=\"failed\" type=\"failure\">"

0 commit comments

Comments
 (0)