[JAEGER] Bug 589349 stopgap: tweak jstests.py to split extra args option on spaces so we can run with '-m -j' to test both JITs

This commit is contained in:
David Mandelin 2010-08-25 14:08:33 -07:00
Родитель 0e22764f0a
Коммит 2f6b158dd3
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -63,7 +63,7 @@ class TestTask:
parts += debugger_prefix
parts.append(js_path)
if js_args:
parts.append(js_args)
parts += js_args
self.js_cmd_prefix = parts
class ResultsSink:
@ -215,7 +215,7 @@ if __name__ == '__main__':
help='run only skipped tests')
op.add_option('--tinderbox', dest='tinderbox', action='store_true',
help='Tinderbox-parseable output format')
op.add_option('--args', dest='shell_args',
op.add_option('--args', dest='shell_args', default='',
help='extra args to pass to the JS shell')
op.add_option('-g', '--debug', dest='debug', action='store_true',
help='run test in debugger')
@ -256,7 +256,7 @@ if __name__ == '__main__':
else:
debugger_prefix = []
TestTask.set_js_cmd_prefix(JS, OPTIONS.shell_args, debugger_prefix)
TestTask.set_js_cmd_prefix(JS, OPTIONS.shell_args.split(), debugger_prefix)
output_file = sys.stdout
if OPTIONS.output_file and (OPTIONS.show_cmd or OPTIONS.show_output):