Prevent the test from being run on Cuttlefish
Bug: 153374181
Bug: 154709530
Test: m .
Change-Id: I9f3dc21f1957f560ca7ef663476d8841a098a9de
diff --git a/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/UserspaceRebootHostTest.java b/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/UserspaceRebootHostTest.java
index d7cca3e..0db309f 100644
--- a/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/UserspaceRebootHostTest.java
+++ b/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/UserspaceRebootHostTest.java
@@ -22,6 +22,8 @@
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
+import android.platform.test.annotations.RequiresDevice;
+
import com.android.compatibility.common.tradefed.build.CompatibilityBuildHelper;
import com.android.tradefed.testtype.DeviceJUnit4ClassRunner;
import com.android.tradefed.testtype.junit4.BaseHostJUnit4Test;
@@ -197,6 +199,7 @@
* given timeout.
*/
@Test
+ @RequiresDevice // TODO(b/154709530): Remove dependency on physical device
public void testUserspaceRebootFailsKillingProcesses() throws Exception {
assumeTrue("Userspace reboot not supported on the device",
getDevice().getBooleanProperty(USERSPACE_REBOOT_SUPPORTED_PROP, false));