diff --git a/.arclint b/.arclint --- a/.arclint +++ b/.arclint @@ -187,7 +187,7 @@ "exclude": [ "(^contrib/gitian-builder/)", "(^src/(secp256k1|univalue)/)", - "(^cmake/utils/test_wrapper.sh)" + "(^cmake/utils/log-and-print-on-failure.sh)" ] }, "lint-cpp-void-parameters": { diff --git a/cmake/modules/TestSuite.cmake b/cmake/modules/TestSuite.cmake --- a/cmake/modules/TestSuite.cmake +++ b/cmake/modules/TestSuite.cmake @@ -118,7 +118,7 @@ add_test_custom_target(${TARGET} TEST_COMMAND - "${CMAKE_SOURCE_DIR}/cmake/utils/test_wrapper.sh" + "${CMAKE_SOURCE_DIR}/cmake/utils/log-and-print-on-failure.sh" "${TEST_LOG_DIRECTORY}/${SUITE}-${NAME}.log" ${CMAKE_CROSSCOMPILING_EMULATOR} "$" ${ARG_UNPARSED_ARGUMENTS} CUSTOM_TARGET_ARGS diff --git a/cmake/utils/test_wrapper.sh b/cmake/utils/log-and-print-on-failure.sh rename from cmake/utils/test_wrapper.sh rename to cmake/utils/log-and-print-on-failure.sh --- a/cmake/utils/test_wrapper.sh +++ b/cmake/utils/log-and-print-on-failure.sh @@ -1,6 +1,6 @@ #!/bin/sh -# USAGE test_wrapper.sh executable log [args] +# USAGE log-and-print-on-failure.sh log executable [args] # Run the with supplied arguments. # The stdout and stderr outputs are redirected to the file, which is only # printed on error.