Skip to content

Commit

Permalink
runtime: Don't run unit tests verbose by default
Browse files Browse the repository at this point in the history
go-test.sh by default adds the -v option to 'go test' meaning that output
will be printed from all the passing tests as well as any failing ones.
This results in a lot of output in which it's often difficult to locate the
failing tests you're interested in.

So, remove -v from the default flags.

Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
dgibson committed May 13, 2022
1 parent f24a6e7 commit e73b70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/go-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ go_test_flags="${KATA_GO_TEST_FLAGS}"
if [ -z "$go_test_flags" ]; then
# KATA_GO_TEST_TIMEOUT can be set to any value accepted by
# "go test -timeout X"
go_test_flags="-v -timeout ${KATA_GO_TEST_TIMEOUT:-30s}"
go_test_flags="-timeout ${KATA_GO_TEST_TIMEOUT:-30s}"

# -race flag is not supported on s390x
[ "$(go env GOARCH)" != "s390x" ] && go_test_flags+=" -race"
Expand Down

0 comments on commit e73b70b

Please sign in to comment.