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

Commit 7f593bb6 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 am:...

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

Change-Id: I550252c263c00319f49ecf6767247e1b0caa9e8b
parents f8278013 71573fc8
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", ""));