When tradefed fails to run a test, it will try to recover the device which might lead to another reboot. This interferes with our test flow which also involves reboot. See b/150749023#comment2 for more details. Let's rewrite the test to prevent auto-recovery of tradefed from kicking in. Generally, it is a bad practice to depend our test flow on a failed test due to reboot. We should call #waitForDeviceNotAvailable to wait for reboot to happen and then call #waitForDeviceAvailable before continuing next tests. Bug: 150749023 Test: atest StagedRollbackTest#testBadApkOnly Change-Id: Ia39630585c3b7344174a8c66d0a33f05a2d80cc7
This directory contains a test for the rollback manager service. Directory structure =================== RollbackTest - device driven test for rollbacks not involving staged rollbacks. StagedRollbackTest - device driven test for staged rollbacks. TestApp - source for dummy apks used in testing. TestApex - source for dummy apex modules used in testing. Running the tests ================= You can manually run the tests as follows: atest RollbackTest atest StagedRollbackTest