diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-16 18:17:15 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-16 18:17:15 +0100 |
commit | 190a1b68b0a952b5e96ced4824628aa1669e060b (patch) | |
tree | f542e33e51f178fdbf2f2e146c773472140a2500 | |
parent | ab7c676f49bd9ba2871bc1e39dff524b14045aa5 (diff) |
fix #7594: skip test if DB not setup
-rwxr-xr-x | src/exchange/test_taler_exchange_httpd.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/exchange/test_taler_exchange_httpd.sh b/src/exchange/test_taler_exchange_httpd.sh index e8dc46af8..0fe71f3ad 100755 --- a/src/exchange/test_taler_exchange_httpd.sh +++ b/src/exchange/test_taler_exchange_httpd.sh @@ -1,7 +1,7 @@ #!/bin/bash # # This file is part of TALER -# Copyright (C) 2015-2020 Taler Systems SA +# Copyright (C) 2015-2020, 2023 Taler Systems SA # # TALER is free software; you can redistribute it and/or modify it under the # terms of the GNU Affero General Public License as published by the Free Software @@ -23,6 +23,8 @@ # Clear environment from variables that override config. unset XDG_DATA_HOME unset XDG_CONFIG_HOME + +set -eu # echo -n "Launching exchange ..." PREFIX= @@ -30,7 +32,7 @@ PREFIX= #PREFIX="valgrind --leak-check=yes --track-fds=yes --error-exitcode=1 --log-file=valgrind.%p" # Setup database -taler-exchange-dbinit -c test_taler_exchange_httpd.conf &> /dev/null +taler-exchange-dbinit -c test_taler_exchange_httpd.conf &> /dev/null || exit 77 # Run Exchange HTTPD (in background) $PREFIX taler-exchange-httpd -c test_taler_exchange_httpd.conf 2> test-exchange.log & |