Stronger cleanup of switches

This commit is contained in:
abejgonzalez 2023-05-18 14:13:18 -07:00
parent 6f89beb09e
commit 0ede4de451
2 changed files with 2 additions and 1 deletions

View File

@ -545,6 +545,7 @@ class FireSimTopologyWithPasses:
rootLogger.info("Confirming exit...")
# keep checking screen until it reports that there are no screens left
while True:
run("screen -wipe || true") # wipe any potentially dead screens
screenoutput = run("screen -ls")
# If AutoILA is enabled, use the following condition
if "2 Sockets in" in screenoutput and "hw_server" in screenoutput and "virtual_jtag" in screenoutput:

View File

@ -176,7 +176,7 @@ class AbstractSwitchToSwitchConfig:
def kill_switch_simulation_command(self) -> str:
""" Return the command to kill the switch. """
return """pkill {}""".format(self.switch_binary_name())
return """pkill -f -SIGKILL {}""".format(self.switch_binary_name())
def switch_build_local_dir(self) -> str:
""" get local build dir of the switch. """