From a270f31aa0cc226896bb3515737d66d8b96c7dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 18 May 2020 18:31:18 +0100 Subject: [PATCH] fix(ci): don't suppress errors when running main tests --- scripts/test-main.sh | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/scripts/test-main.sh b/scripts/test-main.sh index f4635f234..d9b464bf2 100755 --- a/scripts/test-main.sh +++ b/scripts/test-main.sh @@ -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