Show More
@@ -480,11 +480,6 b' def pytest(test, wd, options, replacemen' | |||
|
480 | 480 | replacements.append((r'\r\n', '\n')) |
|
481 | 481 | return run(cmd, wd, options, replacements) |
|
482 | 482 | |
|
483 | def shtest(test, wd, options, replacements): | |
|
484 | cmd = '%s "%s"' % (options.shell, test) | |
|
485 | vlog("# Running", cmd) | |
|
486 | return run(cmd, wd, options, replacements) | |
|
487 | ||
|
488 | 483 | needescape = re.compile(r'[\x00-\x08\x0b-\x1f\x7f-\xff]').search |
|
489 | 484 | escapesub = re.compile(r'[\x00-\x08\x0b-\x1f\\\x7f-\xff]').sub |
|
490 | 485 | escapemap = dict((chr(i), r'\x%02x' % i) for i in range(256)) |
@@ -874,10 +869,7 b' def runone(options, test):' | |||
|
874 | 869 | runner = tsttest |
|
875 | 870 | ref = testpath |
|
876 | 871 | else: |
|
877 | # do not try to run non-executable programs | |
|
878 | if not os.access(testpath, os.X_OK): | |
|
879 | return skip("not executable") | |
|
880 | runner = shtest | |
|
872 | return skip("unknown test type") | |
|
881 | 873 | |
|
882 | 874 | # Make a tmp subdirectory to work in |
|
883 | 875 | testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \ |
General Comments 0
You need to be logged in to leave comments.
Login now