Skip to content

Commit f20d44e

Browse files
committed
only run TEE tests if hardware is present
1 parent 45b275d commit f20d44e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bin/test

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ set -euo pipefail
33

44
set -x
55

6-
cargo nextest run
7-
cargo nextest run --features attest
6+
cargo nextest run "${@:---no-fail-fast}"
7+
8+
if dmesg 2>/dev/null | grep -i -E "snp|tdx|sev"; then
9+
cargo nextest run --features attest "${@:---no-fail-fast}"
10+
else
11+
echo "no attestation hardware found, skipping TEE tests"
12+
fi

0 commit comments

Comments
 (0)