Add --force to `tools/run-dev.py` when run `run-casper` with --force

Add `--force` option to `tools/run-dev.py` when run
`frontend_tests/run-casper` with `--force` option.
This commit is contained in:
Rafid Aslam 2017-01-01 22:30:24 +07:00 committed by showell
parent 0c9eccfa58
commit e1ac6fbece
1 changed files with 4 additions and 1 deletions

View File

@ -123,7 +123,10 @@ def run_tests(realms_have_subdomains, files):
remote_debug = "--remote-debugger-port=7777 --remote-debugger-autorun=yes"
# Run this not through the shell, so that we have the actual PID.
server = subprocess.Popen(('tools/run-dev.py', '--test'),
run_dev_server_command = ['tools/run-dev.py', '--test']
if options.force:
run_dev_server_command.append('--force')
server = subprocess.Popen(run_dev_server_command,
stdout=log, stderr=log)
ret = 1