summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2024-11-11 15:06:27 +0100
committerнаб <nabijaczleweli@nabijaczleweli.xyz>2024-11-11 15:14:07 +0100
commitdf72264891212bc9846649f3f769a1c44fe787bf (patch)
tree68d7b9dcbbcb81244f789711dc45eb3a835b0dee /test/integration/framework
parentf4e0e9daf221e840e122b0ffa97007aa512020a6 (diff)
Only run valgrind in tests if valgrind available on host
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework7
1 files changed, 6 insertions, 1 deletions
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() {