Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91537d30 authored by Tom Cherry's avatar Tom Cherry
Browse files

Revert "init: disable oneshot_on test"

This reverts commit d30c5115.

This test wasn't flaky, it was failing when not run as root, but that
has been fixed.

Bug: 152630580
Bug: 152637928
Test: this test is okay now
Change-Id: I3b20be2839dae90ffc6a8eeea68f36e532060af1
parent 14f4afd2
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -25,7 +25,6 @@ using android::base::SetProperty;
using android::base::WaitForProperty;
using android::base::WaitForProperty;
using namespace std::literals;
using namespace std::literals;


#if 0  // TODO(b/152637928): this test is flaky
TEST(init, oneshot_on) {
TEST(init, oneshot_on) {
    if (getuid() != 0) {
    if (getuid() != 0) {
        GTEST_SKIP() << "Skipping test, must be run as root.";
        GTEST_SKIP() << "Skipping test, must be run as root.";
@@ -48,4 +47,3 @@ TEST(init, oneshot_on) {
    // Now that oneshot is enabled again, bootanim should transition into the 'stopped' state.
    // Now that oneshot is enabled again, bootanim should transition into the 'stopped' state.
    EXPECT_TRUE(WaitForProperty("init.svc.bootanim", "stopped", 10s));
    EXPECT_TRUE(WaitForProperty("init.svc.bootanim", "stopped", 10s));
}
}
#endif