summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ady Abraham <adyabr@google.com> 2020-03-26 12:58:23 -0700
committer Ady Abraham <adyabr@google.com> 2020-03-30 12:13:07 -0700
commit48c7bec03a416db9601c97b242be460b1399f1cd (patch)
tree776210d8a947bdd7ca14ed36257fd43d5ef88816
parent150abca0abecacb310bdb77195b6d1987ec1914d (diff)
SurfaceFlinger: add RootTargetPreparer to SurfaceFlinger_test
Some of SurfaceFlinger tests such as SurfaceInterceptorTest requires root access as they use sf backdoor interface. Test: adb unroot; atest SurfaceFlinger_test Bug: 151830811 Bug: 147527408 Change-Id: Ie144891f1c413a18b705f560d70d23041d36772b Merged-In: Ie144891f1c413a18b705f560d70d23041d36772b
-rw-r--r--services/surfaceflinger/tests/AndroidTest.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/tests/AndroidTest.xml b/services/surfaceflinger/tests/AndroidTest.xml
index 8315037b94..000628f598 100644
--- a/services/surfaceflinger/tests/AndroidTest.xml
+++ b/services/surfaceflinger/tests/AndroidTest.xml
@@ -18,6 +18,7 @@
<option name="cleanup" value="true" />
<option name="push" value="SurfaceFlinger_test->/data/local/tmp/SurfaceFlinger_test" />
</target_preparer>
+ <target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
<option name="test-suite-tag" value="apct" />
<test class="com.android.tradefed.testtype.GTest" >
<option name="native-test-device-path" value="/data/local/tmp" />