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:
Tim Abbott 2017-02-17 16:30:19 -08:00
parent b9ec2545bb
commit 3ccbc7c114
1 changed files with 5 additions and 1 deletions

View File

@ -137,6 +137,10 @@ os.setpgrp()
# 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
# terminal in question.
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.