From 417a19700b0d76592ba203d0d9296538c7435f06 Mon Sep 17 00:00:00 2001 From: centra Date: Tue, 17 Feb 2026 17:45:23 +0900 Subject: [PATCH] Fix test: use execute instead of succeed for pkill to handle exit code 137 --- lab/test-resource-guard.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lab/test-resource-guard.nix b/lab/test-resource-guard.nix index 4ece157..2c0e024 100644 --- a/lab/test-resource-guard.nix +++ b/lab/test-resource-guard.nix @@ -221,7 +221,8 @@ in print(" ✓ Agent terminated with SIGKILL") else: print(" ⚠ Agent still running, will kill all instances") - client.succeed("pkill -9 -f 'lightscale-client.*agent' || true") + # Use execute instead of succeed to ignore exit code + client.execute("pkill -9 -f 'lightscale-client.*guard' || true") time.sleep(2) # Note: SIGKILL cleanup happens via Drop trait, but timing may vary