mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
run-dev: Use a different path for casper test PID file.
This fixes an issue where running the casper tests while a development server was running would effectively corrupt the PID file.
This commit is contained in:
@@ -137,7 +137,11 @@ os.setpgrp()
|
|||||||
# Save pid of parent process to the pid file. It can be used later by
|
# Save pid of parent process to the pid file. It can be used later by
|
||||||
# tools/stop-run-dev to kill the server without having to find the
|
# tools/stop-run-dev to kill the server without having to find the
|
||||||
# terminal in question.
|
# terminal in question.
|
||||||
pid_file_path = os.path.join(os.path.join(os.getcwd(), 'var/run/run_dev.pid'))
|
|
||||||
|
if options.test:
|
||||||
|
pid_file_path = os.path.join(os.path.join(os.getcwd(), 'var/casper/run_dev.pid'))
|
||||||
|
else:
|
||||||
|
pid_file_path = os.path.join(os.path.join(os.getcwd(), 'var/run/run_dev.pid'))
|
||||||
|
|
||||||
# Required for compatibility python versions.
|
# Required for compatibility python versions.
|
||||||
if not os.path.exists(os.path.dirname(pid_file_path)):
|
if not os.path.exists(os.path.dirname(pid_file_path)):
|
||||||
|
|||||||
Reference in New Issue
Block a user