From b241e079051056e100010bba7d4952867fe42ddb Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Sep 17 2019 12:47:40 +0000 Subject: ci: allow distribution specific supression files Format: sssd.$DISTRO_ID.supp e.g. sssd.debian.supp Reviewed-by: Alexey Tikhonov --- diff --git a/contrib/ci/run b/contrib/ci/run index 488b964..1f39389 100755 --- a/contrib/ci/run +++ b/contrib/ci/run @@ -64,6 +64,12 @@ if which pycodestyle &> /dev/null; then PEP8_BIN="pycodestyle" fi +# Additional valgrind flags +declare VALGRIND_FLAGS="" +if [ -e "$CI_DIR/sssd.$DISTRO_ID.supp" ]; then + VALGRIND_FLAGS+=" --suppressions=\"$CI_DIR/sssd.$DISTRO_ID.supp\"" +fi + # Output program usage information. function usage() { @@ -236,6 +242,7 @@ function build_debug() --leak-check=full \ --gen-suppressions=all \ --suppressions=\"$CI_DIR/sssd.supp\" \ + $VALGRIND_FLAGS \ --verbose" || status=$? mv "$test_dir" ci-test-dir