diff --git a/case-lib/hijack.sh b/case-lib/hijack.sh index f86ae822..dc69a15f 100644 --- a/case-lib/hijack.sh +++ b/case-lib/hijack.sh @@ -72,7 +72,8 @@ function func_exit_handler() local nlines; nlines=$(wc -l < "$logfile") # line count only # The first line is the sof-logger header - if [ "$nlines" -le 1 ]; then + # Don't override exit_status if already SKIPped test case + if ([ "$nlines" -le 1 ] && [ $exit_status -ne 2 ]); then dloge "Empty logger trace" exit_status=1 fi