diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-03-30 16:34:18 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-04-03 11:21:50 +0100 |
commit | e1f3bdf72c2f1ecb3e1da66902b3a1da998306f5 (patch) | |
tree | 576deb004a37f79d20cff58be9e1954b32c92122 /runtests.py | |
parent | d5f9cb0e2b207d469ae9596eb9097cde4a198911 (diff) | |
download | numpy-e1f3bdf72c2f1ecb3e1da66902b3a1da998306f5.tar.gz |
ENH: Use subprocess, not execv
This means that the `SHELL` variable does not need to be a full path. execvp
would also have solved this
It also means that this works inside git bash on windows. Previously, it was
confused by windows file paths.
Diffstat (limited to 'runtests.py')
-rwxr-xr-x | runtests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py index f4abd91d6..4c2439bd9 100755 --- a/runtests.py +++ b/runtests.py @@ -183,8 +183,8 @@ def main(argv): if args.shell: shell = os.environ.get('SHELL', 'sh') print("Spawning a Unix shell...") - os.execv(shell, [shell] + extra_argv) - sys.exit(1) + subprocess.call([shell] + extra_argv) + sys.exit(0) if args.coverage: dst_dir = os.path.join(ROOT_DIR, 'build', 'coverage') |