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

Commit e462997a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Change-Id: I24f44fac025236cb1125e3065e3851343ed88029
parents 28548560 d456db6d
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", ""));