Move Tradefed content provider installation in preparer.

Pushing sample file in /sdcard automatically installs the
content provider. This is done to reduce noise during the second
test in the test suite.

Bug: b/164992819

Test: atest MultiUserPerfTest
Change-Id: I1dd583acc850e1233f06af50e28e2ebb0adc0df1
This commit is contained in:
Gopinath Elanchezhian
2020-08-18 15:11:13 -07:00
parent 63dd037e09
commit e5f28772ef

View File

@@ -27,6 +27,9 @@
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
<target_preparer class="com.android.tradefed.targetprep.PushFilePreparer">
<option name="push-file" key="trace_config_detailed.textproto" value="/data/misc/perfetto-traces/trace_config.textproto" />
<!--Install the content provider automatically when we push some file in sdcard folder.-->
<!--Needed to avoid the installation during the test suite.-->
<option name="push-file" key="trace_config_detailed.textproto" value="/sdcard/sample.textproto" />
</target_preparer>
<!-- Needed for pulling the collected trace config on to the host -->