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

Commit d456db6d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "init: require root for oneshot_on test" into rvc-dev

parents 5d4ed024 5b1c316a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -26,6 +26,11 @@ using android::base::WaitForProperty;
using namespace std::literals;

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", ""));