Changeset 109235 in webkit


Ignore:
Timestamp:
Feb 29, 2012 11:48:43 AM (12 years ago)
Author:
dpranke@chromium.org
Message:

perftestsrunner can call printer.write() after printer.cleanup()
https://bugs.webkit.org/show_bug.cgi?id=79872

Reviewed by Ryosuke Niwa.

This patch fixes a unittest that was incorrectly calling
PerfTestsRunner.run() twice (which led to a weird state in the
printer object).

  • Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py:

(MainTest.test_run_with_upload_json):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r109232 r109235  
     12012-02-29  Dirk Pranke  <dpranke@chromium.org>
     2
     3        perftestsrunner can call printer.write() after printer.cleanup()
     4        https://bugs.webkit.org/show_bug.cgi?id=79872
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        This patch fixes a unittest that was incorrectly calling
     9        PerfTestsRunner.run() twice (which led to a weird state in the
     10        printer object).
     11
     12        * Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py:
     13        (MainTest.test_run_with_upload_json):
     14
    1152012-02-29  Balazs Kelemen  <kbalazs@webkit.org>
    216
  • trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py

    r108175 r109235  
    281281        self.assertEqual(generated_json['build-number'], 123)
    282282        upload_json_returns_true = False
     283
     284        runner = self.create_runner(args=['--output-json-path=/mock-checkout/output.json',
     285            '--test-results-server', 'some.host', '--platform', 'platform1', '--builder-name', 'builder1', '--build-number', '123'])
     286        runner._upload_json = mock_upload_json
    283287        self.assertEqual(runner.run(), -3)
    284288
Note: See TracChangeset for help on using the changeset viewer.