From 7fcd1fe669cb3f82bbcb29c8a1eb401aad57d52b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 1 Jul 2016 00:44:30 -0700 Subject: [PATCH] --boxed mode does not work on Windows --- build.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index aee1829f..6d772813 100755 --- a/build.py +++ b/build.py @@ -1055,13 +1055,15 @@ def cmd_test(options, args, tests=None): cmdTimer = CommandTimer('test') pwd = pushDir(phoenixDir()) - # --boxed runs each test in a new process + # --boxed runs each test in a new process (only for posix *&##$#@$^!!) # -n is the number of processes to run in parallel # --timeout will kill the test process if it gets stuck jobs = '-n{}'.format(options.pytest_jobs) if options.pytest_jobs else '' - cmd = '"{}" -m pytest {} --boxed {} --timeout={} {} '.format( + boxed = '--boxed' if not isWindows else '' + cmd = '"{}" -m pytest {} {} {} --timeout={} {} '.format( PYTHON, '-v' if options.verbose else '', + boxed, jobs, options.pytest_timeout, options.extra_pytest)