Преглед на файлове

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`.
Vladimir Varankin преди 7 години
родител
ревизия
f5e81e45cc
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      scripts/circle-test-backend.sh

+ 1 - 1
scripts/circle-test-backend.sh

@@ -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