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

Issue 2302003: Create directory if the given gtest_output path is in an unexisting directory. (Closed)

Created:
10 years, 7 months ago by kinuko
Modified:
9 years, 7 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr.
Visibility:
Public.

Description

Create directory if the given gtest_output path is in an unexisting directory. BUG=42781 TEST=Run one of out-of-process-tests (e.g. browser_tests) with --gtest_output=xml:unexisting_dir/output.xml parameter and see if the specified unexisting_dir is successfully created (if it's in a writable location). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48468

Patch Set 1 #

Patch Set 2 : added a comment #

Total comments: 2

Patch Set 3 : added warning (and one style fix) #

Patch Set 4 : fixed comment typo #

Total comments: 1

Patch Set 5 : added 'creating the directory' warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M chrome/test/test_launcher/test_runner.cc View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
kinuko
10 years, 7 months ago (2010-05-27 11:22:11 UTC) #1
Paweł Hajdan Jr.
Could you provide some rationale why we should do it? I'd prefer to avoid "magically" ...
10 years, 7 months ago (2010-05-27 11:30:36 UTC) #2
kinuko
On 2010/05/27 11:30:36, Paweł Hajdan Jr. wrote: > Could you provide some rationale why we ...
10 years, 7 months ago (2010-05-27 12:38:43 UTC) #3
Paweł Hajdan Jr.
Thanks for explaining. Just one simple suggestion to log a warning in that case. http://codereview.chromium.org/2302003/diff/4001/5001 ...
10 years, 7 months ago (2010-05-27 12:49:42 UTC) #4
kinuko
Adding a warning sounds good, updated the patch. http://codereview.chromium.org/2302003/diff/4001/5001 File chrome/test/test_launcher/test_runner.cc (right): http://codereview.chromium.org/2302003/diff/4001/5001#newcode76 chrome/test/test_launcher/test_runner.cc:76: if ...
10 years, 7 months ago (2010-05-27 13:12:00 UTC) #5
Paweł Hajdan Jr.
After fixing one comment LGTM. http://codereview.chromium.org/2302003/diff/13001/14001 File chrome/test/test_launcher/test_runner.cc (right): http://codereview.chromium.org/2302003/diff/13001/14001#newcode77 chrome/test/test_launcher/test_runner.cc:77: << std::endl; Please add ...
10 years, 7 months ago (2010-05-27 14:58:44 UTC) #6
kinuko
10 years, 7 months ago (2010-05-28 02:09:21 UTC) #7
Thanks for your review, fixed the WARNING text.  Will be submitting.

On 2010/05/27 14:58:44, Paweł Hajdan Jr. wrote:
> After fixing one comment LGTM.
> 
> http://codereview.chromium.org/2302003/diff/13001/14001
> File chrome/test/test_launcher/test_runner.cc (right):
> 
> http://codereview.chromium.org/2302003/diff/13001/14001#newcode77
> chrome/test/test_launcher/test_runner.cc:77: << std::endl;
> Please add info to the warning that the directory will be created.

Powered by Google App Engine
This is Rietveld 408576698