summaryrefslogtreecommitdiff
path: root/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'runtests.py')
-rwxr-xr-xruntests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtests.py b/runtests.py
index 4c2439bd9..1f8dc6e64 100755
--- a/runtests.py
+++ b/runtests.py
@@ -181,8 +181,8 @@ def main(argv):
sys.exit(0)
if args.shell:
- shell = os.environ.get('SHELL', 'sh')
- print("Spawning a Unix shell...")
+ shell = os.environ.get('SHELL', 'cmd' if os.name == 'nt' else 'sh')
+ print("Spawning a shell ({})...".format(shell))
subprocess.call([shell] + extra_argv)
sys.exit(0)