mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-01 17:52:40 +00:00
ci: no-exit: Allow path override for os.Exit check
Allow the path being checked by the os-no-exit script to be passed in, and update the Makefile to use that to check the current code paths of the cli and virtcontainers. Fixes: #477 Signed-off-by: Graham Whaley <graham.whaley@intel.com>
This commit is contained in:
parent
6268ba4aa3
commit
62495d45be
@ -6,7 +6,9 @@
|
||||
# Check there are no os.Exit() calls creeping into the code
|
||||
# We don't use that exit path in the Kata codebase.
|
||||
|
||||
go_packages=.
|
||||
# Allow the path to check to be over-ridden.
|
||||
# Default to the current directory.
|
||||
go_packages=${1:-.}
|
||||
|
||||
echo "Checking for no os.Exit() calls for package [${go_packages}]"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user