From: Russ Cox Date: Wed, 13 Dec 2017 19:38:58 +0000 (-0500) Subject: test: skip "# package/path" output from cmd/go in errchk X-Git-Tag: go1.10beta2~121 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c6ea277ac1bb81b6773d100819fcec57c8e2c95e;p=gostls13.git test: skip "# package/path" output from cmd/go in errchk This allows errchk to be used with "go vet" output (as opposed to "go tool vet"). Change-Id: I0009a53c9cb74accd5bd3923c137d6dbf9e46326 Reviewed-on: https://go-review.googlesource.com/83836 Run-TryBot: Russ Cox Reviewed-by: Brad Fitzpatrick --- diff --git a/test/errchk b/test/errchk index bc8ef19cb0..1cb57bb961 100755 --- a/test/errchk +++ b/test/errchk @@ -65,6 +65,9 @@ $out = join('', ); close CMD; +# Remove lines beginning with #, printed by go command to indicate package. +@out = grep {!/^#/} @out; + if($exitcode != 0 && $? == 0) { print STDERR "BUG: errchk: command succeeded unexpectedly\n"; print STDERR @out;