tests/run-tests.py
branchstable
changeset 1022 34ebea1c49c9
parent 1019 e7fbd63e5a98
child 1033 8cbcb86e4fa8
equal deleted inserted replaced
1019:e7fbd63e5a98 1022:34ebea1c49c9
   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