506 cmd = '%s%s "%s"' % (PYTHON, py3kswitch, test) |
506 cmd = '%s%s "%s"' % (PYTHON, py3kswitch, test) |
507 vlog("# Running", cmd) |
507 vlog("# Running", cmd) |
508 return run(cmd, wd, options, replacements) |
508 return run(cmd, wd, options, replacements) |
509 |
509 |
510 def shtest(test, wd, options, replacements): |
510 def shtest(test, wd, options, replacements): |
511 cmd = '"%s"' % test |
511 cmd = '%s "%s"' % (options.shell, test) |
512 vlog("# Running", cmd) |
512 vlog("# Running", cmd) |
513 return run(cmd, wd, options, replacements) |
513 return run(cmd, wd, options, replacements) |
514 |
514 |
515 needescape = re.compile(r'[\x00-\x08\x0b-\x1f\x7f-\xff]').search |
515 needescape = re.compile(r'[\x00-\x08\x0b-\x1f\x7f-\xff]').search |
516 escapesub = re.compile(r'[\x00-\x08\x0b-\x1f\\\x7f-\xff]').sub |
516 escapesub = re.compile(r'[\x00-\x08\x0b-\x1f\\\x7f-\xff]').sub |