From 77c1d0cde456c806332a3abca706e12349961307 Mon Sep 17 00:00:00 2001 From: ssube Date: Fri, 1 Nov 2019 05:06:04 -0500 Subject: [PATCH] fix(tests): always print actual exit status of test scenarios --- README.md | 2 ++ scripts/test-examples.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 6a1bdfa..9bce5c1 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,8 @@ ingress.extensions/gitlab created (dry run) ### Docker Build +This method does not require the usual dependencies to be installed locally, only `docker` itself. + Build with Docker: ```shell diff --git a/scripts/test-examples.sh b/scripts/test-examples.sh index 2dd4072..bb2effe 100755 --- a/scripts/test-examples.sh +++ b/scripts/test-examples.sh @@ -32,6 +32,8 @@ do ACTUAL_STATUS=$? + echo "Actual status: ${ACTUAL_STATUS}" + if [ "${ACTUAL_STATUS}" != "${EXPECTED_STATUS}" ]; then echo "Exit status does not match! (expected ${EXPECTED_STATUS}, got ${ACTUAL_STATUS})"