From 94f16ed0b30b8a36796867a35021ada069a75342 Mon Sep 17 00:00:00 2001 From: usamoi Date: Thu, 4 Jul 2024 14:53:24 +0800 Subject: [PATCH] ci: skip zomible process in crash test (#516) Signed-off-by: usamoi --- tests/crash/kill.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/crash/kill.py b/tests/crash/kill.py index dbe9ac2ec..c1bfddaaa 100644 --- a/tests/crash/kill.py +++ b/tests/crash/kill.py @@ -9,7 +9,10 @@ def process_filter(p: psutil.Process) -> bool: - cmdline = "".join(p.cmdline()) + try: + cmdline = "".join(p.cmdline()) + except psutil.ZombieProcess: + return False for case in FILTERS: if case not in cmdline: return False