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