[PATCH 4 of 5] run-tests: coverage must not be in PATH

Simon Heimberg simohe at besonet.ch
Tue Feb 8 00:56:02 CST 2011


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1297146034 -3600
# Node ID 797b0e0c0d239e78439b373e5e388ec32cddb039
# Parent  0e69d61fd334c37bbe5dd20107335da8ee0107d2
run-tests: coverage must not be in PATH

coverage must be in PYTHONPATH anyway, so use module

diff -r 0e69d61fd334 -r 797b0e0c0d23 tests/run-tests.py
--- a/tests/run-tests.py	Die Feb 08 07:20:34 2011 +0100
+++ b/tests/run-tests.py	Die Feb 08 07:20:34 2011 +0100
@@ -421,7 +421,7 @@
     os.chdir(PYTHONDIR)
 
     def covrun(*args):
-        cmd = 'coverage %s' % ' '.join(args)
+        cmd = PYTHON + ' -m coverage %s' % ' '.join(args)
         vlog('# Running: %s' % cmd)
         os.system(cmd)
 


More information about the Mercurial-devel mailing list