Skip to content

Commit cf3e324

Browse files
authored
Merge branch 'main' into stop
2 parents 479e144 + b668ee5 commit cf3e324

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unit-tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
set -o pipefail
44

5-
go test -v -race ./... | tee out.log
5+
go test -v -race ./... &> out.log
66

77
if [[ $? -ne 0 ]];then
88
echo "Tests failed"
9+
cat out.log
910
exit 1
1011
fi
1112

13+
cat out.log
14+
1215
echo "Checking for warnings or errors in the test output"
1316

1417
grep -Eq "ERR|WARN" out.log

0 commit comments

Comments
 (0)