run-tests.py: fix the check for the hg installation with -jn (n > 1)
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 10 Sep 2008 13:52:33 +0200
changeset 7025 766d8cb8c622
parent 7024 ee308d44ad76
child 7026 3e49127bcec3
run-tests.py: fix the check for the hg installation with -jn (n > 1)
tests/run-tests.py
--- a/tests/run-tests.py	Sun Sep 07 15:10:11 2008 +0200
+++ b/tests/run-tests.py	Wed Sep 10 13:52:33 2008 +0200
@@ -471,6 +471,8 @@
 def run_children(tests):
     if not options.with_hg:
         install_hg()
+        if hgpkg != expecthg:
+            print '# Testing unexpected mercurial: %s' % hgpkg
 
     optcopy = dict(options.__dict__)
     optcopy['jobs'] = 1
@@ -540,8 +542,8 @@
         if not options.with_hg:
             install_hg()
 
-        if hgpkg != expecthg:
-           print '# Testing unexpected mercurial: %s' % hgpkg
+            if hgpkg != expecthg:
+                print '# Testing unexpected mercurial: %s' % hgpkg
 
         if options.timeout > 0:
             try: