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

Commit 70f646c6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "CtsInitTestCases: additional debug info in failure" into main

parents 5d6aa920 645e5120
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -39,11 +39,13 @@ TEST(init, oneshot_on) {

    // Bootanim exits quickly when the device is fully booted, so check that it goes back to the
    // 'restarting' state that non-oneshot services enter once they've restarted.
    EXPECT_TRUE(WaitForProperty("init.svc.bootanim", "restarting", 10s));
    EXPECT_TRUE(WaitForProperty("init.svc.bootanim", "restarting", 10s))
            << "Value is: " << GetProperty("init.svc.bootanim", "");

    SetProperty("ctl.oneshot_on", "bootanim");
    SetProperty("ctl.start", "bootanim");

    // 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))
            << "Value is: " << GetProperty("init.svc.bootanim", "");
}