From eb0fe4eb1f017a3f1ef03e06a7a7d229ed0525a2 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Mon, 12 Nov 2012 03:10:48 +1100 Subject: [eclass] Permit ebuilds to define myctestargs (so that we could disable certain tests without patches). --- eclass/cmake-utils.eclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'eclass/cmake-utils.eclass') diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 1766e23b5bc..eb14999a7ca 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -506,15 +506,14 @@ enable_cmake-utils_src_install() { enable_cmake-utils_src_test() { debug-print-function ${FUNCNAME} "$@" - local ctestargs _check_build_dir pushd "${CMAKE_BUILD_DIR}" > /dev/null [[ -e CTestTestfile.cmake ]] || { echo "No tests found. Skipping."; return 0 ; } - [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure" + [[ -n ${TEST_VERBOSE} ]] && myctestargs+=( --extra-verbose --output-on-failure ) - if ctest ${ctestargs} "$@" ; then + if ctest "${myctestargs[@]}" "$@" ; then einfo "Tests succeeded." popd > /dev/null return 0 -- cgit v1.2.3