Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Issue 411143003: Add an "in_unit_test_mode" attribute to the environment. Use this to default output format to 'gtes… (Closed)

Created:
6 years, 5 months ago by chrishenry
Modified:
6 years, 4 months ago
CC:
chromium-reviews, piman+watch_chromium.org, telemetry+watch_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add an "in_unit_test_mode" attribute to the environment. Use this to default output format to 'gtest' for unit test. Previously, we default output format to 'gtest' if the PageTest object being run is not a PageMeasurement. This distinction between PageTest and PageMeasurement is going away though. The new mechanism is also more explicit. BUG=383635

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address review comments. #

Total comments: 1

Patch Set 3 : Address review comment. #

Total comments: 1

Patch Set 4 : New approach (a wrapper script). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
A content/test/gpu/run_gpu_test View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/results/results_options.py View 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
chrishenry
6 years, 5 months ago (2014-07-23 22:44:21 UTC) #1
Ken Russell (switch to Gerrit)
LGTM https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/core/environment.py File tools/telemetry/telemetry/core/environment.py (right): https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/core/environment.py#newcode24 tools/telemetry/telemetry/core/environment.py:24: def in_unit_test_mode(self): Is it worth documenting the precise ...
6 years, 5 months ago (2014-07-23 23:46:26 UTC) #2
chrishenry
https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/core/environment.py File tools/telemetry/telemetry/core/environment.py (right): https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/core/environment.py#newcode24 tools/telemetry/telemetry/core/environment.py:24: def in_unit_test_mode(self): On 2014/07/23 23:46:26, Ken Russell wrote: > ...
6 years, 5 months ago (2014-07-23 23:52:59 UTC) #3
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/test_runner.py File tools/telemetry/telemetry/test_runner.py (right): https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/test_runner.py#newcode350 tools/telemetry/telemetry/test_runner.py:350: options.output_format = 'gtest' On 2014/07/23 23:52:59, chrishenry wrote: > ...
6 years, 5 months ago (2014-07-23 23:57:17 UTC) #4
nednguyen
On 2014/07/23 23:57:17, Ken Russell wrote: > https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/test_runner.py > File tools/telemetry/telemetry/test_runner.py (right): > > https://codereview.chromium.org/411143003/diff/1/tools/telemetry/telemetry/test_runner.py#newcode350 ...
6 years, 5 months ago (2014-07-24 00:42:41 UTC) #5
chrishenry
On 2014/07/24 00:42:41, nednguyen wrote: > On 2014/07/23 23:57:17, Ken Russell wrote: > > > ...
6 years, 5 months ago (2014-07-24 00:53:45 UTC) #6
chrishenry
On 2014/07/24 00:53:45, chrishenry wrote: > On 2014/07/24 00:42:41, nednguyen wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-24 01:19:49 UTC) #7
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/411143003/diff/40001/content/test/gpu/gpu_tests/cloud_storage_test_base.py File content/test/gpu/gpu_tests/cloud_storage_test_base.py (right): https://codereview.chromium.org/411143003/diff/40001/content/test/gpu/gpu_tests/cloud_storage_test_base.py#newcode50 content/test/gpu/gpu_tests/cloud_storage_test_base.py:50: options = {'output_format': 'gtest'} Where is it documented that ...
6 years, 5 months ago (2014-07-24 01:24:34 UTC) #8
nednguyen
On 2014/07/24 01:24:34, Ken Russell wrote: > https://codereview.chromium.org/411143003/diff/40001/content/test/gpu/gpu_tests/cloud_storage_test_base.py > File content/test/gpu/gpu_tests/cloud_storage_test_base.py (right): > > https://codereview.chromium.org/411143003/diff/40001/content/test/gpu/gpu_tests/cloud_storage_test_base.py#newcode50 ...
6 years, 5 months ago (2014-07-24 01:36:16 UTC) #9
Ken Russell (switch to Gerrit)
On 2014/07/24 01:36:16, nednguyen wrote: > On 2014/07/24 01:24:34, Ken Russell wrote: > > > ...
6 years, 5 months ago (2014-07-24 01:49:33 UTC) #10
nednguyen
LGTM Please wait for Ken's feedback too.
6 years, 5 months ago (2014-07-24 01:50:19 UTC) #11
nednguyen
On 2014/07/24 01:49:33, Ken Russell wrote: > On 2014/07/24 01:36:16, nednguyen wrote: > > On ...
6 years, 5 months ago (2014-07-24 01:58:13 UTC) #12
Ken Russell (switch to Gerrit)
On 2014/07/24 01:58:13, nednguyen wrote: > On 2014/07/24 01:49:33, Ken Russell wrote: > > On ...
6 years, 5 months ago (2014-07-24 02:08:05 UTC) #13
nednguyen
On 2014/07/24 02:08:05, Ken Russell wrote: > On 2014/07/24 01:58:13, nednguyen wrote: > > On ...
6 years, 5 months ago (2014-07-24 02:20:04 UTC) #14
Ken Russell (switch to Gerrit)
On 2014/07/24 02:20:04, nednguyen wrote: > For this immediate patch, would it be fine for ...
6 years, 5 months ago (2014-07-24 02:32:12 UTC) #15
chromium-reviews
How about just a wrapper sh script that add --output_format=gtest, since bit already does the ...
6 years, 5 months ago (2014-07-24 02:44:38 UTC) #16
chromium-reviews
(I meant bot.) (from phone) On Jul 23, 2014 7:44 PM, "Chris Henry" <chrishenry@google.com> wrote: ...
6 years, 5 months ago (2014-07-24 02:45:03 UTC) #17
chrishenry
Ok, here is what I was thinking. Lmk what you think. Another option would be ...
6 years, 5 months ago (2014-07-24 15:44:46 UTC) #18
Ken Russell (switch to Gerrit)
On 2014/07/24 15:44:46, chrishenry wrote: > Ok, here is what I was thinking. Lmk what ...
6 years, 5 months ago (2014-07-25 23:40:35 UTC) #19
dtu
On 2014/07/25 23:40:35, Ken Russell wrote: > On 2014/07/24 15:44:46, chrishenry wrote: > > Ok, ...
6 years, 4 months ago (2014-07-29 22:28:51 UTC) #20
chrishenry
On 2014/07/29 22:28:51, dtu wrote: > On 2014/07/25 23:40:35, Ken Russell wrote: > > On ...
6 years, 4 months ago (2014-07-29 23:32:39 UTC) #21
chrishenry
6 years, 4 months ago (2014-08-02 20:57:46 UTC) #22
The other patch has landed:
https://codereview.chromium.org/430383003/

Closing this patch since it is not required anymore.

Powered by Google App Engine
This is Rietveld 408576698