From: Eric Engestrom Date: Sun, 26 Feb 2017 00:17:52 +0000 (+0000) Subject: check: make any failure fatal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd35a119adbe1dec7d5d3e59b9e4ff0bd936e927;p=mesa.git check: make any failure fatal Previously, only the last error code was returned. Using `set -e` makes the script quit on any unhandled error. Signed-off-by: Eric Engestrom --- diff --git a/src/egl/egl-entrypoint-check b/src/egl/egl-entrypoint-check index 3bf69b22755..e20b374454c 100755 --- a/src/egl/egl-entrypoint-check +++ b/src/egl/egl-entrypoint-check @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -e entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h) sorted=$(sort <<< "$entrypoints") diff --git a/src/glx/tests/dispatch-index-check b/src/glx/tests/dispatch-index-check index baa09c5bd93..244634131f6 100755 --- a/src/glx/tests/dispatch-index-check +++ b/src/glx/tests/dispatch-index-check @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -e # extract enum definition dispatch_list=$(sed '/__GLXdispatchIndex/,/__GLXdispatchIndex/!d' \