From 1c453a372efeba834d2ebc3a37147948b2ed573d Mon Sep 17 00:00:00 2001 From: Graham Whaley Date: Tue, 10 Jul 2018 14:57:32 +0100 Subject: [PATCH] ci: no-exit: Document and echo what the check is Make it clearer why we run the check. Make it announce itself. Signed-off-by: Graham Whaley --- .ci/go-no-os-exit.sh | 5 +++++ 1 file changed, 5 insertions(+) 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`