[test] Skip rialto_test when dice_changes flag is off
This cl skips rialto_test when the feature flag |dice_changes| is
off, because when the flag is not enabled, the DICE chain is
truncated in the pvmfw, which blocks the service VM from
validating the chain due to the missing entries.
Bug: 323885165
Test: atest rialto_test
Change-Id: Ia08eec10955aca5fb88a13671852d9f0b5d3c1a2
diff --git a/rialto/tests/test.rs b/rialto/tests/test.rs
index c918db5..d66caa5 100644
--- a/rialto/tests/test.rs
+++ b/rialto/tests/test.rs
@@ -53,8 +53,12 @@
const INSTANCE_IMG_PATH: &str = "/data/local/tmp/rialto_test/arm64/instance.img";
const TEST_CERT_CHAIN_PATH: &str = "testdata/rkp_cert_chain.der";
+#[cfg(dice_changes)]
#[test]
fn process_requests_in_protected_vm() -> Result<()> {
+ // The test is skipped if the feature flag |dice_changes| is not enabled, because when
+ // the flag is off, the DICE chain is truncated in the pvmfw, and the service VM cannot
+ // verify the chain due to the missing entries in the chain.
check_processing_requests(VmType::ProtectedVm)
}