init: disable oneshot_on test

Apparently relying on bootanim to restart or not is too flaky.

Bug: 152630580
Bug: 152637928
Test: this test no longer runs
Change-Id: If61b31bad276560a9f0db9811724bbc9efc51d28
This commit is contained in:
Tom Cherry 2020-03-27 13:36:58 -07:00
parent 44a6d9a527
commit d30c51157e
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ using android::base::SetProperty;
using android::base::WaitForProperty;
using namespace std::literals;
#if 0 // TODO(b/152637928): this test is flaky
TEST(init, oneshot_on) {
// Bootanim shouldn't be running once the device has booted.
ASSERT_EQ("stopped", GetProperty("init.svc.bootanim", ""));
@ -42,3 +43,4 @@ TEST(init, oneshot_on) {
// Now that oneshot is enabled again, bootanim should transition into the 'stopped' state.
EXPECT_TRUE(WaitForProperty("init.svc.bootanim", "stopped", 10s));
}
#endif