From 6877b04f59b4e6a9e827ff56c0f455f9edf75f5c Mon Sep 17 00:00:00 2001 From: Fred Oh Date: Fri, 5 Nov 2021 13:01:48 -0700 Subject: [PATCH] hijack.sh: don't return error when test case is already skip Empty logger in skipped test is expected. Don't return error because sof-logger is empty in skipped test. Signed-off-by: Fred Oh --- case-lib/hijack.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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