diff options
author | 2018-07-30 07:41:52 +0100 | |
---|---|---|
committer | 2018-07-29 23:41:52 -0700 | |
commit | 6e1c02c4ac7d806af5e91dbe42c43a1e817b6b70 (patch) | |
tree | cda74b89a7a0512857ed774b70ebf3c629159444 | |
parent | 54ec78c1ba918b98ac9b9c5b1334c9d170502119 (diff) | |
download | coredns-6e1c02c4ac7d806af5e91dbe42c43a1e817b6b70.tar.gz coredns-6e1c02c4ac7d806af5e91dbe42c43a1e817b6b70.tar.zst coredns-6e1c02c4ac7d806af5e91dbe42c43a1e817b6b70.zip |
Make presubmit actually fail the build (#2013)
The exit code wasn't properly acted upon in the makefile.
Make filename-hyphen actually return an non-zero exit code.
Signed-off-by: Miek Gieben <miek@miek.nl>
-rwxr-xr-x | .presubmit/filename-hyphen | 1 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.presubmit/filename-hyphen b/.presubmit/filename-hyphen index 927ac1ff2..e08f2b16e 100755 --- a/.presubmit/filename-hyphen +++ b/.presubmit/filename-hyphen @@ -5,5 +5,6 @@ echo "** presubmit/$(basename $0)" for dir in "$@"; do if find $dir | grep '-'; then echo "** presubmit/$(basename $0): please use an underscore in filenames instead of a hyphen" + exit 1 fi done @@ -81,7 +81,7 @@ pb: # Presubmit runs all scripts in .presubmit; any non 0 exit code will fail the build. .PHONY: presubmit presubmit: - @for pre in $(MAKEPWD)/.presubmit/* ; do "$$pre" $(PRESUBMIT); done + @for pre in $(MAKEPWD)/.presubmit/* ; do "$$pre" $(PRESUBMIT) || exit 1 ; done .PHONY: clean clean: |