Skip to content

Commit

Permalink
More traces in functest suite to see what's happening with ngsild_ver…
Browse files Browse the repository at this point in the history
…sion.test
  • Loading branch information
kzangeli committed Feb 29, 2024
1 parent 41efc08 commit a2b27d7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/functionalTest/testHarness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,11 @@ function partExecute()
#
# Check that stderr is empty
#
logMsg "=============================================="
logMsg "wc -l $dirname/$filename.$what.stderr:"
wc -l $dirname/$filename.$what.stderr >> $LOG_FILE
logMsg "=============================================="

linesInStderr=$(wc -l $dirname/$filename.$what.stderr | awk '{ print $1}' 2> /dev/null)
if [ "$linesInStderr" != "" ] && [ "$linesInStderr" != "0" ]
then
Expand All @@ -1004,9 +1009,9 @@ function partExecute()
exitFunction 7 "$what: output on stderr" $path "($path): $what produced output on stderr" $dirname/$filename.$what.stderr $dirname/$filename.$what.stdout "$forcedDie"
else
logMsg "$what: output on stderr"
logMsg "------------------------------------------------------"
logMsg "******************************************************"
cat $dirname/$filename.$what.stderr >> $LOG_FILE
logMsg "------------------------------------------------------"
logMsg "******************************************************"
echo -n "(lines in stderr: $linesInStderr) "
echo "(ERROR 7 - $what: output on stderr) "
fi
Expand Down

0 comments on commit a2b27d7

Please sign in to comment.