Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
ci: no-exit: Document and echo what the check is
Browse files Browse the repository at this point in the history
Make it clearer why we run the check.
Make it announce itself.

Signed-off-by: Graham Whaley <[email protected]>
  • Loading branch information
Graham Whaley authored and Eric Ernst committed Aug 23, 2018
1 parent 9868cf2 commit e640655
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .ci/go-no-os-exit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit e640655

Please sign in to comment.