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

Issue 2612733003: Machine-local policy files should not affect tests (Closed)

Created:
3 years, 11 months ago by pmarko
Modified:
3 years, 11 months ago
CC:
chromium-reviews, ljusten (tachyonic), Thiemo Nagel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Machine-local policy files should not affect tests Override location of machine-local policy directory for both unit tests and browser tests. This makes sure that any policy data the machine has does not affect the test results. BUG=630614 Review-Url: https://codereview.chromium.org/2612733003 Cr-Commit-Position: refs/heads/master@{#442852} Committed: https://chromium.googlesource.com/chromium/src/+/6edddec42dae4c5797b642f59580a8c7024c1b6a

Patch Set 1 #

Patch Set 2 : browser tests: Don't try to create the policy dir #

Total comments: 6

Patch Set 3 : Improve comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M chrome/test/base/test_launcher_utils.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
pmarko
Please review the changes. It has been reported that machine-local policy files on developers' machines ...
3 years, 11 months ago (2017-01-04 19:09:29 UTC) #8
Paweł Hajdan Jr.
https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/test_launcher_utils.cc File chrome/test/base/test_launcher_utils.cc (right): https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/test_launcher_utils.cc#newcode112 chrome/test/base/test_launcher_utils.cc:112: base::FilePath policy_files = user_data_dir.AppendASCII("policies"); Why is this in POSIX ...
3 years, 11 months ago (2017-01-05 15:48:03 UTC) #11
pmarko
https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/test_launcher_utils.cc File chrome/test/base/test_launcher_utils.cc (right): https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/test_launcher_utils.cc#newcode112 chrome/test/base/test_launcher_utils.cc:112: base::FilePath policy_files = user_data_dir.AppendASCII("policies"); On 2017/01/05 15:48:02, Paweł Hajdan ...
3 years, 11 months ago (2017-01-05 16:07:53 UTC) #12
pmarko
On 2017/01/05 16:07:53, pmarko wrote: > https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/test_launcher_utils.cc > File chrome/test/base/test_launcher_utils.cc (right): > > https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/test_launcher_utils.cc#newcode112 > ...
3 years, 11 months ago (2017-01-05 16:09:52 UTC) #13
Paweł Hajdan Jr.
LGTM Consider making the /non/existing/directory really unique, or a TODO for that.
3 years, 11 months ago (2017-01-09 20:06:55 UTC) #14
pmarko
On 2017/01/09 20:06:55, Paweł Hajdan Jr. wrote: > LGTM > > Consider making the /non/existing/directory ...
3 years, 11 months ago (2017-01-10 13:14:44 UTC) #15
Thiemo Nagel
https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/testing_browser_process.cc File chrome/test/base/testing_browser_process.cc (right): https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/testing_browser_process.cc#newcode159 chrome/test/base/testing_browser_process.cc:159: // machine-wide poilcies do not affect tests. Nit: typo
3 years, 11 months ago (2017-01-10 13:24:37 UTC) #17
Paweł Hajdan Jr.
On 2017/01/10 13:14:44, pmarko wrote: > On 2017/01/09 20:06:55, Paweł Hajdan Jr. wrote: > > ...
3 years, 11 months ago (2017-01-10 16:27:21 UTC) #18
pmarko
On 2017/01/10 16:27:21, Paweł Hajdan Jr. wrote: > On 2017/01/10 13:14:44, pmarko wrote: > > ...
3 years, 11 months ago (2017-01-10 16:32:08 UTC) #19
Paweł Hajdan Jr.
I have slight preference towards (1). LGTM with that.
3 years, 11 months ago (2017-01-10 18:24:07 UTC) #20
pmarko
https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/testing_browser_process.cc File chrome/test/base/testing_browser_process.cc (right): https://codereview.chromium.org/2612733003/diff/20001/chrome/test/base/testing_browser_process.cc#newcode159 chrome/test/base/testing_browser_process.cc:159: // machine-wide poilcies do not affect tests. On 2017/01/10 ...
3 years, 11 months ago (2017-01-11 09:09:25 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2612733003/40001
3 years, 11 months ago (2017-01-11 09:14:26 UTC) #24
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 10:25:58 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/6edddec42dae4c5797b642f59580...

Powered by Google App Engine
This is Rietveld 408576698