| Index: Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
|
| diff --git a/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py b/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
|
| index d6c1bc0beb9fe25269fcf9f2ae478f7582c833b7..187c56e7cc978946aab1dcdd6e62e97b6da64b33 100644
|
| --- a/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
|
| +++ b/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
|
| @@ -138,6 +138,7 @@ class MockDRTPort(object):
|
| suite = self.__delegate.lookup_virtual_suite(test_name)
|
| return suite.args + ['--virtual-test-suite-name', suite.name, '--virtual-test-suite-base', suite.base]
|
|
|
| +
|
| def main(argv, host, stdin, stdout, stderr):
|
| """Run the tests."""
|
|
|
| @@ -158,8 +159,8 @@ def parse_options(argv):
|
| return None
|
|
|
| options = optparse.Values({
|
| - 'actual_directory': get_arg('--actual-directory'),
|
| - 'platform': get_arg('--platform'),
|
| + 'actual_directory': get_arg('--actual-directory'),
|
| + 'platform': get_arg('--platform'),
|
| 'virtual_test_suite_base': get_arg('--virtual-test-suite-base'),
|
| 'virtual_test_suite_name': get_arg('--virtual-test-suite-name'),
|
| })
|
| @@ -167,6 +168,7 @@ def parse_options(argv):
|
|
|
|
|
| class MockDRT(object):
|
| +
|
| def __init__(self, options, args, host, stdin, stdout, stderr):
|
| self._options = options
|
| self._args = args
|
| @@ -216,7 +218,9 @@ class MockDRT(object):
|
| def output_for_test(self, test_input, is_reftest):
|
| port = self._port
|
| if self._options.virtual_test_suite_name:
|
| - test_input.test_name = test_input.test_name.replace(self._options.virtual_test_suite_base, self._options.virtual_test_suite_name)
|
| + test_input.test_name = test_input.test_name.replace(
|
| + self._options.virtual_test_suite_base,
|
| + self._options.virtual_test_suite_name)
|
| actual_text = port.expected_text(test_input.test_name)
|
| actual_audio = port.expected_audio(test_input.test_name)
|
| actual_image = None
|
|
|