From 34b43fc68aa664314ba075bd60a8f8a63716ec3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Fri, 11 Jan 2019 13:57:37 +0100 Subject: [PATCH] Docker: Fix coverage test --- tools/docker/scripts/ci_entrypoint.sh | 5 ++++- tools/docker/scripts/test_coverage.sh | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/docker/scripts/ci_entrypoint.sh b/tools/docker/scripts/ci_entrypoint.sh index 12d2be915d..413dae1769 100755 --- a/tools/docker/scripts/ci_entrypoint.sh +++ b/tools/docker/scripts/ci_entrypoint.sh @@ -105,7 +105,10 @@ fi if $TOOLCHAIN_OK ; then echo -e "\n========== Running Test ==========" | tee -a $REPORT cd /workspace - "$@" |& tee -a $REPORT + if ! "$@" |& tee -a $REPORT ; then + echo -e "\nSummary: Test had non-zero exit status." | tee -a $REPORT + echo -e "Status: FAILED\n" | tee -a $REPORT + fi fi # Wrap up. diff --git a/tools/docker/scripts/test_coverage.sh b/tools/docker/scripts/test_coverage.sh index 8b144bf686..bf8fb88b7a 100755 --- a/tools/docker/scripts/test_coverage.sh +++ b/tools/docker/scripts/test_coverage.sh @@ -23,9 +23,8 @@ make ARCH="${ARCH}" VERSION="${VERSION}" TESTOPTS="${TESTOPTS}" test # gcov gets stuck on some files... # Maybe related: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1694644 # As a workaround we'll simply remove the offending files for now. -rm -v "/workspace/cp2k/obj/${ARCH}/${VERSION}"/almo_scf_types.gcda -rm -v "/workspace/cp2k/obj/${ARCH}/${VERSION}"/dbcsr_tensor_types.gcda -rm -v "/workspace/cp2k/obj/${ARCH}/${VERSION}"/mp2_types.gcda +rm -fv "/workspace/cp2k/obj/${ARCH}/${VERSION}"/almo_scf_types.gcda +rm -fv "/workspace/cp2k/obj/${ARCH}/${VERSION}"/mp2_types.gcda #cd /tmp #for i in /workspace/cp2k/obj/${ARCH}/${VERSION}/*.gcda; do # timeout 30 gcov $i >/dev/null 2>&1 || rm -v $i