mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 17:06:57 -06:00
fix gofmt tests output
Print the whole command in "Execute ..." and "... returned 1" logs. Fix "binary operator expected" by passing quoted output from `gofmt` to `test`.
This commit is contained in:
parent
841ca49942
commit
f5e81e45cc
@ -11,7 +11,7 @@ function exit_if_fail {
|
||||
}
|
||||
|
||||
echo "running go fmt"
|
||||
exit_if_fail test -z "$(gofmt -s -l ./pkg | tee /dev/stderr)"
|
||||
exit_if_fail test -z \"'$(gofmt -s -l ./pkg | tee /dev/stderr)'\"
|
||||
|
||||
echo "building backend with install to cache pkgs"
|
||||
exit_if_fail time go install ./pkg/cmd/grafana-server
|
||||
|
Loading…
Reference in New Issue
Block a user