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