From d10020df4be1f87f494202af69dfda4443b23d0d Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Thu, 29 Jun 2023 19:42:11 -0700 Subject: [PATCH] hijack.sh: fail when an error is found in Zephyr firmware logs At last. Signed-off-by: Marc Herbert --- case-lib/hijack.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/case-lib/hijack.sh b/case-lib/hijack.sh index a489f982..8175f119 100644 --- a/case-lib/hijack.sh +++ b/case-lib/hijack.sh @@ -110,6 +110,18 @@ function func_exit_handler() dloge "Empty logfile" exit_status=1 fi + + # We still have some false positives in stable-v2.2 for now, see + # https://github.com/thesofproject/sof-test/pull/1075 + # https://github.com/thesofproject/sof/pull/9036 + # etc. + if is_firmware_file_zephyr; then + + check_error_in_fw_logfile "$logfile" || + exit_status=1 + + fi + else dloge "Log file not found: $logfile" exit_status=1