Run RollbackTest#testBasic only under a secondary user. The host-driven test adds a new user and then installs the TEST (not the test app) for that new user. Note: this was the missing step in the previous attempt to test RollbackTest under a secondary user. Test: atest SecondaryUserRollbackTest Test: test failed when multiuser support was removed from rollback manager Test: adb shell pm list packages --user 11 | grep rollback while running the test in order to make sure the test is installing packages for the right user Bug: 133852817 Bug: 129747710 Change-Id: Id1e54769cc2a9631d1464c07bad2b685f78689bc
26 lines
1.2 KiB
XML
26 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2019 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<configuration description="Runs the rollback test from a secondary user">
|
|
<option name="test-suite-tag" value="SecondaryUserRollbackTest" />
|
|
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
|
|
<option name="cleanup-apks" value="true" />
|
|
<option name="test-file-name" value="RollbackTest.apk" />
|
|
</target_preparer>
|
|
<test class="com.android.tradefed.testtype.HostTest" >
|
|
<option name="class" value="com.android.tests.rollback.host.SecondaryUserRollbackTest" />
|
|
</test>
|
|
</configuration>
|