summaryrefslogtreecommitdiff
path: root/tools/py_functional_tests.sh
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2016-01-23 03:45:02 -0500
committerRichard Hansen <rhansen@rhansen.org>2016-01-31 16:13:58 -0500
commit5dcceb88a124f2ba8a6c4475bd2c87d629f54950 (patch)
tree5ff8d408b22cb777ede7c106708f3f03e7239a60 /tools/py_functional_tests.sh
parent57f1ad53e202861f2f7c858f970782a2351dcb76 (diff)
downloadgitlab-5dcceb88a124f2ba8a6c4475bd2c87d629f54950.tar.gz
improve error handling
Break up pipelines and check the exit status of non-basic commands to ensure that any problems cause the scripts/testcases to fail right away.
Diffstat (limited to 'tools/py_functional_tests.sh')
-rwxr-xr-xtools/py_functional_tests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/py_functional_tests.sh b/tools/py_functional_tests.sh
index 4538541..0d00c5f 100755
--- a/tools/py_functional_tests.sh
+++ b/tools/py_functional_tests.sh
@@ -14,8 +14,8 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-setenv_script=$(dirname "$0")/build_test_env.sh
+setenv_script=$(dirname "$0")/build_test_env.sh || exit 1
BUILD_TEST_ENV_AUTO_CLEANUP=true
-. "$setenv_script" "$@"
+. "$setenv_script" "$@" || exit 1
-python "$(dirname "$0")"/python_test.py
+try python "$(dirname "$0")"/python_test.py