diff --git a/.ci/go-no-os-exit.sh b/.ci/go-no-os-exit.sh index 51eac257a..fe3bbf64a 100755 --- a/.ci/go-no-os-exit.sh +++ b/.ci/go-no-os-exit.sh @@ -2,9 +2,14 @@ # Copyright (c) 2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 +# +# Check there are no os.Exit() calls creeping into the code +# We don't use that exit path in the Kata codebase. go_packages=. +echo "Checking for no os.Exit() calls for package [${go_packages}]" + candidates=`go list -f '{{.Dir}}/*.go' $go_packages` for f in $candidates; do filename=`basename $f`