fix(ci): don't suppress errors when running main tests

This commit is contained in:
Łukasz Mierzwa
2020-05-18 18:57:59 +01:00
committed by Łukasz Mierzwa
parent d860dae3ca
commit a270f31aa0
+9 -13
View File
@@ -17,21 +17,17 @@ go test \
-coverpkg="$COVERPKG" \
-c \
-tags testrunmain \
./cmd/karma 2>&1 \
| (grep -v 'warning: no packages being tested depend on matches for pattern' || true)
./cmd/karma
(
ALERTMANAGER_URI=http://localhost \
ALERTMANAGER_INTERVAL=1s \
LISTEN_ADDRESS=127.0.0.1 \
LISTEN_PORT=0 \
LOG_LEVEL=fatal \
LOG_CONFIG=false \
ALERTMANAGER_URI=http://localhost \
ALERTMANAGER_INTERVAL=1s \
LISTEN_ADDRESS=127.0.0.1 \
LISTEN_PORT=0 \
LOG_LEVEL=fatal \
LOG_CONFIG=false \
./karma.test \
-test.run "^TestRunMain$" \
-test.coverprofile=profile.main.1 2>&1 \
| grep -v 'warning: no packages being tested depend on matches for pattern' \
| sed s/'of statements in .*'/''/g &)
-test.run '^TestRunMain$' \
-test.coverprofile=profile.main.1 &
sleep 5
killall karma.test