[PATCH 2 of 5] tests: don't require 'hg' without extension on windows

Mads Kiilerich mads at kiilerich.com
Fri Apr 27 19:05:07 CDT 2012


# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1335568967 -7200
# Branch stable
# Node ID c2257f704c8bcf8ff3b1d8c92bbc9a2e7f651afe
# Parent  c517144347460dc6492f752f5112a7899226957a
tests: don't require 'hg' without extension on windows

Hackable uses hg.exe instead.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -209,7 +209,7 @@
     if options.local:
         testdir = os.path.dirname(os.path.realpath(sys.argv[0]))
         hgbin = os.path.join(os.path.dirname(testdir), 'hg')
-        if not os.access(hgbin, os.X_OK):
+        if os.name != 'nt' and not os.access(hgbin, os.X_OK):
             parser.error('--local specified, but %r not found or not executable'
                          % hgbin)
         options.with_hg = hgbin


More information about the Mercurial-devel mailing list