From df72264891212bc9846649f3f769a1c44fe787bf Mon Sep 17 00:00:00 2001 From: наб Date: Mon, 11 Nov 2024 15:06:27 +0100 Subject: Only run valgrind in tests if valgrind available on host --- test/integration/framework | 7 ++++++- test/integration/test-apt-update-simple | 7 +------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test/integration') diff --git a/test/integration/framework b/test/integration/framework index 477aebd39..e054b4209 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -256,7 +256,12 @@ valgrind() { if [ "${CMD##*/}" = "$CMD" ]; then CMD="${APTCMDLINEBINDIR}/${CMD}" fi - runapt command valgrind -q --error-exitcode=7 "$CMD" "$@" + if command -v valgrind > /dev/null; then + runapt command valgrind -q --error-exitcode=7 "$CMD" "$@" + else + msgdebug "Running without valgrind" + runapt command "$CMD" "$@" + fi } lastmodification() { diff --git a/test/integration/test-apt-update-simple b/test/integration/test-apt-update-simple index 0d28034aa..6855f1d1f 100755 --- a/test/integration/test-apt-update-simple +++ b/test/integration/test-apt-update-simple @@ -34,9 +34,4 @@ main/i18n/Translation-de' aptget indextargets --format '$(METAKEY)' # Check that -o Acquire::Queue-Mode=access does not crash find rootdir/var/lib/apt/lists/ -type f -delete -if [ "$(command dpkg --print-architecture)" = "armhf" ]; then - msgskip "valgrind on armhf is broken" - testsuccess aptget update -o Acquire::Queue-Mode=access -else - testsuccess valgrind aptget update -o Acquire::Queue-Mode=access -fi +testsuccess valgrind aptget update -o Acquire::Queue-Mode=access -- cgit v1.2.3-70-g09d2