Merge "init_kill_services_test: special case apexd" am: 89a4db46f5
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2598914 Change-Id: I56ebb4f6a71181a6de1175e3f281c44a5260d464 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
e1bcb729ef
1 changed files with 7 additions and 0 deletions
|
@ -23,8 +23,15 @@
|
|||
|
||||
using ::android::base::GetProperty;
|
||||
using ::android::base::SetProperty;
|
||||
using ::android::base::WaitForProperty;
|
||||
using std::literals::chrono_literals::operator""s;
|
||||
|
||||
void ExpectKillingServiceRecovers(const std::string& service_name) {
|
||||
// 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";
|
||||
|
||||
LOG(INFO) << "hello " << service_name << "!";
|
||||
const std::string status_prop = "init.svc." + service_name;
|
||||
const std::string pid_prop = "init.svc_debug_pid." + service_name;
|
||||
|
|
Loading…
Reference in a new issue