Server restart inside of test.sh
does not work as expected
#1526
Labels
🐞 bug
Something isn't working
test.sh
does not work as expected
#1526
There are several problems with the way we handle server restarts in the
test.sh
script:CI
env variable is not set, the server is not correctly shutdown.CI
env variable is set, the server is not correctly shutdown when running the script locally. It is unclear why that works remotely, as starting a server locally after running the script does not succeed due to the port already being used.pkill -9 -f '.*lively.*'
inside of the same shell that the script ran it previously. However, using the same line inside of the script did not always lead to the same result. I expect that this has something to do with subshells and the UNIX process hierarchy.test.sh
without theCI
env variable set while another lively server is running on a port other than 9011), as this kills all lively servers. However, we need a command that only kills the one on 9011 and-n
does not cut it, as we need to kill multiple processes.The text was updated successfully, but these errors were encountered: