diff --git a/cmake/podioTest.cmake b/cmake/podioTest.cmake index 01aa86196..81c241f46 100644 --- a/cmake/podioTest.cmake +++ b/cmake/podioTest.cmake @@ -40,6 +40,7 @@ macro(PODIO_DOWNLOAD_LEGACY_INPUTS legacy_versions) OUTPUT_VARIABLE podio_test_input_data_dir RESULT_VARIABLE test_inputs_available ) + message(STATUS ${podio_test_input_data_dir}) if (NOT "${test_inputs_available}" STREQUAL "0") message(WARNING "Could not get test input files. Will skip some tests that depend on these") # Catch cases where the variable is cached but the file no longer exists diff --git a/tests/scripts/get_test_inputs.sh b/tests/scripts/get_test_inputs.sh index 42eed5295..07b308ec5 100644 --- a/tests/scripts/get_test_inputs.sh +++ b/tests/scripts/get_test_inputs.sh @@ -15,7 +15,11 @@ for version in $@; do cd ${PODIO_TEST_INPUT_DATA_DIR} mkdir ${version} && cd ${version} for fileName in example.root example_frame.root example.sio example_frame.sio; do - wget https://key4hep.web.cern.ch:443/testFiles/podio/${version}/${fileName} > /dev/null 2>&1 + echo "Fetching "${fileName}" for version "${version} + if ! wget https://key4hep.web.cern.ch:443/testFiles/podio/${version}/${fileName} > /dev/null 2>&1; then + echo "Could not get file "${fileName}" for version "${version} + exit 1 + fi done done