From cc05828b315197f1595036d4a30065fd101f846f Mon Sep 17 00:00:00 2001 From: Hongyu Ning Date: Tue, 17 Oct 2023 20:15:15 +0800 Subject: [PATCH] [guest-test] Test Enhance: improve code based on code check hints improve code logic based on code check hints [Test Components] tdx [Test Types] func [Supported Devices] spr,emr,gnr,srf Signed-off-by: Hongyu Ning --- guest-test/tdx/tdx_attest_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guest-test/tdx/tdx_attest_check.sh b/guest-test/tdx/tdx_attest_check.sh index fe3cde9..0fdada8 100755 --- a/guest-test/tdx/tdx_attest_check.sh +++ b/guest-test/tdx/tdx_attest_check.sh @@ -49,7 +49,7 @@ attest_result() { rm -rf attest.log fi ./tdx_guest_test | tee attest.log - results=$(cat attest.log | grep "not ok $selftest_num $selftest_item") + results=$(grep "not ok $selftest_num $selftest_item" attest.log) if [ -z "$results" ]; then test_print_trc "TD attestation - $selftest_item PASS." else