rpDataTest: Assume UpdatableVM
The implementation of the API is only supported when Updatable VMs are
supported.
Test: N/A
Bug: 391365376
Change-Id: I1a446f281b8b62813133b295c00b972a955de5e0
diff --git a/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java b/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java
index ae4c2e5..193e9d3 100644
--- a/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java
+++ b/tests/testapk/src/java/com/android/microdroid/test/MicrodroidTests.java
@@ -1935,6 +1935,11 @@
@Test
public void rollbackProtectedDataCanBeAccessedPostConnectionExpiration() throws Exception {
+ assumeSupportedDevice();
+ // Rollback protected data is only possible if Updatable VMs is supported -
+ // which implies Secretkeeper support.
+ assumeTrue("Missing Updatable VM support", isUpdatableVmSupported());
+
final long vmSize = minMemoryRequired();
// The reference implementation of Secretkeeper maintains 4 live session keys,
// dropping the oldest one when new connections are requested. Therefore we spin 8 VMs