From 53d012f0b87b2235d0391f558b4914d85812b4a6 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Mon, 29 Apr 2024 10:01:20 +0200 Subject: [PATCH] x86_fsp: test_qemu.sh: allow grep to return error when checking output --- tools/scripts/x86_fsp/qemu/test_qemu.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/scripts/x86_fsp/qemu/test_qemu.sh b/tools/scripts/x86_fsp/qemu/test_qemu.sh index 9801f57a6..e165e971e 100755 --- a/tools/scripts/x86_fsp/qemu/test_qemu.sh +++ b/tools/scripts/x86_fsp/qemu/test_qemu.sh @@ -53,6 +53,7 @@ sleep 5 # close qemu timeout 5 echo 'quit' > /tmp/qemu_mon.in output=$(cat /tmp/qemu_output) +set +e app=$(echo "$output" | grep -m 1 "wolfBoot QEMU x86 FSP test app") if [ -n "$app" ]; then echo "Found 'wolfBoot QEMU x86 FSP test app' in the output."