summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-02-26 00:17:52 +0000
committerEric Engestrom <[email protected]>2017-02-26 13:39:43 +0000
commitcd35a119adbe1dec7d5d3e59b9e4ff0bd936e927 (patch)
tree1881fa2e86c8b0eea10a7a9c5f70b619c5740b42
parenta1e5e55989c70c5f58bdd8a797f9a035f068f580 (diff)
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 <[email protected]>
-rwxr-xr-xsrc/egl/egl-entrypoint-check1
-rwxr-xr-xsrc/glx/tests/dispatch-index-check1
2 files changed, 2 insertions, 0 deletions
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' \