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

Commit 642929f8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "init_kill_services_test: binder logs on apexd fail"

parents ba3bddd1 1501b0c3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -27,10 +27,13 @@ using ::android::base::WaitForProperty;
using std::literals::chrono_literals::operator""s;

void ExpectKillingServiceRecovers(const std::string& service_name) {
    LOG(INFO) << "before we say hi to " << service_name << ", I can't have apexd around!";

    // b/280514080 - servicemanager will restart apexd, and apexd will restart the
    // system when crashed. This is fine as the device recovers, but it causes
    // flakes in this test.
    ASSERT_TRUE(WaitForProperty("init.svc.apexd", "stopped", 60s)) << "apexd won't stop";
    ASSERT_TRUE(WaitForProperty("init.svc.apexd", "stopped", 60s))
            << (system("cat /dev/binderfs/binder_logs/state"), "apexd won't stop");

    LOG(INFO) << "hello " << service_name << "!";
    const std::string status_prop = "init.svc." + service_name;