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

Commit 645e5120 authored by Steven Moreland's avatar Steven Moreland
Browse files

CtsInitTestCases: additional debug info in failure

Likely race, but not reproing locally, so adding debug info we can
see in the infra what the issue is.

Bug: 379469103
Test: atest CtsInitTestCases
Change-Id: Ie30a1b7d4458edac41f75bdd42084efd6af52939
parent ea5715c1
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line 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
    // 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.
    // '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.oneshot_on", "bootanim");
    SetProperty("ctl.start", "bootanim");
    SetProperty("ctl.start", "bootanim");


    // Now that oneshot is enabled again, bootanim should transition into the 'stopped' state.
    // 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", "");
}
}