Commit c6ea277a authored by Russ Cox's avatar Russ Cox

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 <rsc@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent de14b2f6
......@@ -65,6 +65,9 @@ $out = join('', <CMD>);
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment