Skip to content

Commit

Permalink
Fix logs not shown until tests are done
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed May 16, 2024
1 parent 6350fe9 commit 7270f7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/docker-network/tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ popd
# If no arguments were passed, run all tests
if [ $# -eq 0 ]; then
echo "Running all tests..."
go test ./... -tags ${BUILD_TAGS} -v -timeout=${TIMEOUT}
# The following command will run all tests in the current directory only, but we
# want to do it this way because otherwise the logs are not shown in the console
# until all the tests are done.
go test -tags ${BUILD_TAGS} -v -timeout=${TIMEOUT}
else
# Concatenate all test names with a pipe
tests=$(printf "|%s" "$@")
Expand Down

0 comments on commit 7270f7c

Please sign in to comment.