Fix test: use execute instead of succeed for pkill to handle exit code 137
This commit is contained in:
parent
14c6c418e2
commit
417a19700b
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue