Fix test: clean up systemd service between tests
This commit is contained in:
parent
417a19700b
commit
fb54666294
1 changed files with 5 additions and 0 deletions
|
|
@ -237,6 +237,11 @@ in
|
|||
if interface_exists("ls-guard"):
|
||||
client.succeed("ip link del ls-guard 2>/dev/null || true")
|
||||
|
||||
# Clean up systemd service from previous test
|
||||
client.execute("systemctl stop lightscale-agent.service 2>/dev/null || true")
|
||||
client.execute("systemctl reset-failed lightscale-agent.service 2>/dev/null || true")
|
||||
time.sleep(1)
|
||||
|
||||
# =======================================================================
|
||||
# TEST 4: Cleanup Before Start (--cleanup-before-start)
|
||||
# Purpose: Verify that leftover interfaces from previous crashes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue