Fix test: use execute instead of succeed for pkill to handle exit code 137

This commit is contained in:
centra 2026-02-17 17:45:23 +09:00
parent 14c6c418e2
commit 417a19700b
Signed by: centra
GPG key ID: 0C09689D20B25ACA

View file

@ -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