tests/test-commandserver.py
changeset 20396 a8e6ab7eb361
parent 20330 69a0d22b9677
child 20628 e3d1df48fcc6
--- a/tests/test-commandserver.py	Tue Jan 28 00:33:52 2014 +0100
+++ b/tests/test-commandserver.py	Sat Feb 08 10:41:17 2014 +0100
@@ -267,7 +267,10 @@
 
     runcommand(server, ['up', 'null'])
     runcommand(server, ['phase', '-df', 'tip'])
-    os.system('hg debugobsolete `hg log -r tip --template {node}`')
+    cmd = 'hg debugobsolete `hg log -r tip --template {node}`'
+    if os.name == 'nt':
+        cmd = 'sh -c "%s"' % cmd # run in sh, not cmd.exe
+    os.system(cmd)
     runcommand(server, ['log', '--hidden'])
     runcommand(server, ['log'])