Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4506)

Issue 10234044: code review 10234044: testing: add -outputdir flag so "go test" controls wher... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by r
Modified:
10 years, 10 months ago
Reviewers:
minux1, brainman, rsc, iant
CC:
rsc, minux1, iant, brainman, golang-dev
Visibility:
Public.

Description

testing: add -outputdir flag so "go test" controls where the files are written Obscure misfeature now fixed: When run from "go test", profiles were always written in the package's source directory. This change puts them in the directory where "go test" is run. Also fix a couple of problems causing errors in testing.after to go unreported unless -v was set.

Patch Set 1 #

Total comments: 2

Patch Set 2 : diff -r 7544727c9c28 https://code.google.com/p/go #

Total comments: 4

Patch Set 3 : diff -r 7544727c9c28 https://code.google.com/p/go #

Total comments: 2

Patch Set 4 : diff -r 7544727c9c28 https://code.google.com/p/go #

Patch Set 5 : diff -r 8519983c00e8 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -9 lines) Patch
M src/cmd/go/doc.go View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/cmd/go/test.go View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/cmd/go/testflag.go View 1 5 chunks +13 lines, -0 lines 0 comments Download
M src/pkg/testing/testing.go View 1 2 3 3 chunks +45 lines, -9 lines 0 comments Download

Messages

Total messages: 27
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 10 months ago (2013-06-12 19:01:34 UTC) #1
rsc
https://codereview.appspot.com/10234044/diff/1/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10234044/diff/1/src/pkg/testing/testing.go#newcode525 src/pkg/testing/testing.go:525: // Simple implementation to avoid pulling in path/filepath. I ...
10 years, 10 months ago (2013-06-12 19:12:07 UTC) #2
minux1
cmd/go docs for the new flag -outputdir?
10 years, 10 months ago (2013-06-12 19:24:00 UTC) #3
r
https://codereview.appspot.com/10234044/diff/1/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10234044/diff/1/src/pkg/testing/testing.go#newcode525 src/pkg/testing/testing.go:525: // Simple implementation to avoid pulling in path/filepath. i ...
10 years, 10 months ago (2013-06-12 21:31:53 UTC) #4
r
Apologies for my Windows ignorance, but now I don't even see how to do this ...
10 years, 10 months ago (2013-06-12 21:45:40 UTC) #5
r
OK, i have a plan. Sheesh. -rob
10 years, 10 months ago (2013-06-12 22:00:05 UTC) #6
minux1
On Thu, Jun 13, 2013 at 5:45 AM, <r@golang.org> wrote: > Apologies for my Windows ...
10 years, 10 months ago (2013-06-12 22:04:21 UTC) #7
r
Hello rsc@golang.org, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 10 months ago (2013-06-12 22:26:09 UTC) #8
r
I don't want to import filepath into testing. -rob
10 years, 10 months ago (2013-06-12 22:26:59 UTC) #9
r
Also that test is wrong on Windows. (But nothing is right, either.) See the comments ...
10 years, 10 months ago (2013-06-12 22:27:40 UTC) #10
minux1
On windows, is \a\b\c an absolute path (relative to the current volume)? could we instead ...
10 years, 10 months ago (2013-06-12 22:45:50 UTC) #11
iant
https://codereview.appspot.com/10234044/diff/8001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10234044/diff/8001/src/pkg/testing/testing.go#newcode545 src/pkg/testing/testing.go:545: } else if path[0] == os.PathSeparator { Better to ...
10 years, 10 months ago (2013-06-12 22:49:19 UTC) #12
rsc
FWIW, making testing depend on path/filepath will bring in only path/filepath: all the dependencies of ...
10 years, 10 months ago (2013-06-12 22:58:47 UTC) #13
r
I'd rather not expand testing's dependencies at all, plus it also requires updating the package ...
10 years, 10 months ago (2013-06-12 23:02:41 UTC) #14
r
https://codereview.appspot.com/10234044/diff/8001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10234044/diff/8001/src/pkg/testing/testing.go#newcode545 src/pkg/testing/testing.go:545: } else if path[0] == os.PathSeparator { On 2013/06/12 ...
10 years, 10 months ago (2013-06-12 23:03:19 UTC) #15
rsc
(It should be.) https://codereview.appspot.com/10234044/diff/8001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10234044/diff/8001/src/pkg/testing/testing.go#newcode534 src/pkg/testing/testing.go:534: // Problem: if path == "C:A" ...
10 years, 10 months ago (2013-06-12 23:05:25 UTC) #16
r
Hello rsc@golang.org, minux.ma@gmail.com, iant@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 10 months ago (2013-06-12 23:34:57 UTC) #17
iant
LGTM
10 years, 10 months ago (2013-06-13 00:02:26 UTC) #18
brainman
https://codereview.appspot.com/10234044/diff/18001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10234044/diff/18001/src/pkg/testing/testing.go#newcode524 src/pkg/testing/testing.go:524: // (assuming outputDir is itself absolute). I don't see ...
10 years, 10 months ago (2013-06-13 00:05:19 UTC) #19
r
Hello rsc@golang.org, minux.ma@gmail.com, iant@golang.org, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 10 months ago (2013-06-13 00:12:23 UTC) #20
r
The solution to that is to change the function name. PTAL.
10 years, 10 months ago (2013-06-13 00:12:53 UTC) #21
brainman
LGTM. For what it worth :-) Alex
10 years, 10 months ago (2013-06-13 00:14:01 UTC) #22
minux1
LGTM.
10 years, 10 months ago (2013-06-13 00:14:12 UTC) #23
minux1
On Thu, Jun 13, 2013 at 8:14 AM, <minux.ma@gmail.com> wrote: > LGTM. If you don't ...
10 years, 10 months ago (2013-06-13 00:15:48 UTC) #24
rsc
LGTM No need for docs on this flag. It's only for use by the go ...
10 years, 10 months ago (2013-06-13 01:11:57 UTC) #25
r
*** Submitted as https://code.google.com/p/go/source/detail?r=3018dd1d3e6f *** testing: add -outputdir flag so "go test" controls where the ...
10 years, 10 months ago (2013-06-13 01:13:37 UTC) #26
r
10 years, 10 months ago (2013-06-13 01:14:22 UTC) #27
You got them anyway.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b