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 7018 0b72836b0384
parent 7017 8362086a1227
child 7019 6b1ece890f9a
run-tests.py: fix the check for the hg installation with -jn (n > 1)
tests/run-tests.py
--- a/tests/run-tests.py	Wed Sep 10 08:49:05 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: