diff options
| author | Richard Hansen <rhansen@rhansen.org> | 2016-01-23 03:45:02 -0500 |
|---|---|---|
| committer | Richard Hansen <rhansen@rhansen.org> | 2016-01-31 16:13:58 -0500 |
| commit | 5dcceb88a124f2ba8a6c4475bd2c87d629f54950 (patch) | |
| tree | 5ff8d408b22cb777ede7c106708f3f03e7239a60 /tools/py_functional_tests.sh | |
| parent | 57f1ad53e202861f2f7c858f970782a2351dcb76 (diff) | |
| download | gitlab-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-x | tools/py_functional_tests.sh | 6 |
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 |
