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

Commit 14f4afd2 authored by Tom Cherry's avatar Tom Cherry
Browse files

init: require root for oneshot_on test

Bug: 152630580
Bug: 152637928
Bug: 152662041
Bug: 152662652
Test: this test is skipped when run as non-root
Change-Id: I7118025cc20081a200000bf484a08c9ed0b0d3ec
parent 4e187274
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -27,6 +27,11 @@ using namespace std::literals;

#if 0  // TODO(b/152637928): this test is flaky
TEST(init, oneshot_on) {
    if (getuid() != 0) {
        GTEST_SKIP() << "Skipping test, must be run as root.";
        return;
    }

    // Bootanim shouldn't be running once the device has booted.
    ASSERT_EQ("stopped", GetProperty("init.svc.bootanim", ""));