Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f249a41 authored by Serdar Kocdemir's avatar Serdar Kocdemir
Browse files

Annotate GpuWorkTracepointTest with RequiresDevice

GpuWorkTracepointTest test requires GPU driver to generate kernel
tracepoint events which should only be tested with real devices,
but not with emulators. Replacing RestrictedBuildTest annotation
with RequiresDevice to correctly indicate this.

Bug: b/352538275
Test: atest GpuWorkTracepointTest
Flag: EXEMPT test fix
Change-Id: I57f5f035a6ea7ac12e6fb6c619385af75defda2a
parent 18285555
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
{
  "presubmit": [
    {
      "name": "GpuServiceVendorTests"
      "name": "GpuServiceVendorTests",
      "options": [
        {
          // Exclude test methods that require a physical device to run.
          "exclude-annotation": "android.platform.test.annotations.RequiresDevice"
        }
      ]
    }
  ]
}
+2 −2
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;

import android.platform.test.annotations.RestrictedBuildTest;
import android.platform.test.annotations.RequiresDevice;

import com.android.tradefed.testtype.DeviceJUnit4ClassRunner;
import com.android.tradefed.testtype.junit4.BaseHostJUnit4Test;
@@ -63,7 +63,7 @@ public class GpuWorkTracepointTest extends BaseHostJUnit4Test {
    }

    @VsrTest(requirements={"VSR-3.3-004"})
    @RestrictedBuildTest
    @RequiresDevice
    @Test
    public void testGpuWorkPeriodTracepointFormat() throws Exception {
        CommandResult commandResult = getDevice().executeShellV2Command(