Commit e07d684a authored by qyearsley's avatar qyearsley Committed by Commit bot

Reformat args lists in perftestsrunner_unittest.py.

Follow-up to https://codereview.chromium.org/1839193004.

Review-Url: https://codereview.chromium.org/1847353002
Cr-Commit-Position: refs/heads/master@{#390287}
parent 1dc47ef3
...@@ -694,8 +694,13 @@ class IntegrationTest(unittest.TestCase): ...@@ -694,8 +694,13 @@ class IntegrationTest(unittest.TestCase):
"revisions": {"chromium": {"timestamp": "2013-02-01 08:48:05 +0000", "revision": "5678"}}}]) "revisions": {"chromium": {"timestamp": "2013-02-01 08:48:05 +0000", "revision": "5678"}}}])
def test_run_with_upload_json(self): def test_run_with_upload_json(self):
runner, port = self.create_runner_and_setup_results_template(args=['--output-json-path=/mock-checkout/output.json', runner, port = self.create_runner_and_setup_results_template(args=[
'--test-results-server', 'some.host', '--platform', 'platform1', '--builder-name', 'builder1', '--build-number', '123']) '--output-json-path=/mock-checkout/output.json',
'--test-results-server', 'some.host',
'--platform', 'platform1',
'--builder-name', 'builder1',
'--build-number', '123'
])
self._test_run_with_json_output(runner, port.host.filesystem, upload_succeeds=True) self._test_run_with_json_output(runner, port.host.filesystem, upload_succeeds=True)
generated_json = json.loads(port.host.filesystem.files['/mock-checkout/output.json']) generated_json = json.loads(port.host.filesystem.files['/mock-checkout/output.json'])
...@@ -707,9 +712,14 @@ class IntegrationTest(unittest.TestCase): ...@@ -707,9 +712,14 @@ class IntegrationTest(unittest.TestCase):
expected_exit_code=PerfTestsRunner.EXIT_CODE_FAILED_UPLOADING) expected_exit_code=PerfTestsRunner.EXIT_CODE_FAILED_UPLOADING)
def test_run_with_upload_json_should_generate_perf_webkit_json(self): def test_run_with_upload_json_should_generate_perf_webkit_json(self):
runner, port = self.create_runner_and_setup_results_template(args=['--output-json-path=/mock-checkout/output.json', runner, port = self.create_runner_and_setup_results_template(args=[
'--test-results-server', 'some.host', '--platform', 'platform1', '--builder-name', 'builder1', '--build-number', '123', '--output-json-path=/mock-checkout/output.json',
'--slave-config-json-path=/mock-checkout/slave-config.json']) '--test-results-server', 'some.host',
'--platform', 'platform1',
'--builder-name', 'builder1',
'--build-number', '123',
'--slave-config-json-path=/mock-checkout/slave-config.json'
])
port.host.filesystem.write_text_file('/mock-checkout/slave-config.json', '{"key": "value1"}') port.host.filesystem.write_text_file('/mock-checkout/slave-config.json', '{"key": "value1"}')
self._test_run_with_json_output(runner, port.host.filesystem, upload_succeeds=True) self._test_run_with_json_output(runner, port.host.filesystem, upload_succeeds=True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment