Skip to content

Commit

Permalink
[guest-test] Test Enhance: improve code based on code check hints
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hongyuni committed Oct 17, 2023
1 parent 81eda7d commit cc05828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guest-test/tdx/tdx_attest_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc05828

Please sign in to comment.