changeset 17801:03554dfc7ced

run-tests: remove dead code for supporting old test scripts
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 18 Oct 2012 00:44:32 +0200
parents f3c36faa7374
children a421459b83c0
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Thu Oct 18 00:33:29 2012 +0200
+++ b/tests/run-tests.py	Thu Oct 18 00:44:32 2012 +0200
@@ -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"] = \