[PATCH 3 of 3] run-tests: remove dead code for supporting old test scripts
Mads Kiilerich
mads at kiilerich.com
Wed Oct 17 18:51:31 CDT 2012
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1350513872 -7200
# Node ID 7a496a8c1f5beb467245f4d2f46e70f83c4b6d3d
# Parent 35f134b39cdbfff327c8daaf8011c6c9b3e98482
run-tests: remove dead code for supporting old test scripts
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -480,11 +480,6 @@
replacements.append((r'\r\n', '\n'))
return run(cmd, wd, options, replacements)
-def shtest(test, wd, options, replacements):
- cmd = '%s "%s"' % (options.shell, test)
- vlog("# Running", cmd)
- return run(cmd, wd, options, replacements)
-
needescape = re.compile(r'[\x00-\x08\x0b-\x1f\x7f-\xff]').search
escapesub = re.compile(r'[\x00-\x08\x0b-\x1f\\\x7f-\xff]').sub
escapemap = dict((chr(i), r'\x%02x' % i) for i in range(256))
@@ -874,10 +869,7 @@
runner = tsttest
ref = testpath
else:
- # do not try to run non-executable programs
- if not os.access(testpath, os.X_OK):
- return skip("not executable")
- runner = shtest
+ return skip("unknown test type")
# Make a tmp subdirectory to work in
testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \
More information about the Mercurial-devel
mailing list