From 5398cf13eee6aba557beb29eef4aa169dfd61551 Mon Sep 17 00:00:00 2001 From: Lucas Di Pentima Date: Tue, 16 Apr 2024 14:37:15 -0300 Subject: [PATCH] 21666: Adds logging and status check to exit prematurely when failing. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- tools/salt-install/tests/run-test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/salt-install/tests/run-test.sh b/tools/salt-install/tests/run-test.sh index c52367e098..f56b252766 100755 --- a/tools/salt-install/tests/run-test.sh +++ b/tools/salt-install/tests/run-test.sh @@ -18,7 +18,11 @@ if ! curl -s -o /dev/null https://${ARVADOS_API_HOST}/users/welcome?return_to=%2 fi # Then, run a basic diagnostics test. -arvados-client diagnostics -internal-client +echo "Running arvados-client diagnostics..." +if ! arvados-client diagnostics -internal-client; then + echo "Diagnostics run FAILED, exiting" + exit 1 +fi # https://doc.arvados.org/v2.0/install/install-jobs-image.html echo "Creating Arvados Standard Docker Images project" -- 2.30.2