From 1271e63c499b272cfa65deda4a74197f5253df74 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 15 Apr 2019 12:58:48 +0200 Subject: [PATCH] tests: ignore errors with enabled ASAN in python bindings temporary solution... as it ends with undefined symbol: __asan_option_detect_stack_use_after_return Signed-off-by: Karel Zak --- tests/ts/libmount/context-py | 4 ++++ tests/ts/libmount/context-utab-py | 4 ++++ tests/ts/libmount/tabfiles-py | 2 +- tests/ts/libmount/tabfiles-tags-py | 2 +- tests/ts/libmount/update-py | 2 +- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/ts/libmount/context-py b/tests/ts/libmount/context-py index dfc8faaeec..f86edd3af5 100755 --- a/tests/ts/libmount/context-py +++ b/tests/ts/libmount/context-py @@ -20,6 +20,10 @@ ts_check_prog "mkfs.ext4" ts_init_py libmount +if [ "$TS_ENABLE_ASAN" == "yes" ]; then + TS_KNOWN_FAIL="yes" +fi + TESTPROG="$TS_HELPER_PYLIBMOUNT_CONTEXT" [ -x $TESTPROG ] || ts_die "test script missing" diff --git a/tests/ts/libmount/context-utab-py b/tests/ts/libmount/context-utab-py index 89fc0c1573..3a1da05c14 100755 --- a/tests/ts/libmount/context-utab-py +++ b/tests/ts/libmount/context-utab-py @@ -19,6 +19,10 @@ ts_check_prog "mkfs.ext4" ts_init_py libmount +if [ "$TS_ENABLE_ASAN" == "yes" ]; then + TS_KNOWN_FAIL="yes" +fi + TESTPROG="$TS_HELPER_PYLIBMOUNT_CONTEXT" [ -x $TESTPROG ] || ts_die "test script missing" diff --git a/tests/ts/libmount/tabfiles-py b/tests/ts/libmount/tabfiles-py index b157460709..832e6d980e 100755 --- a/tests/ts/libmount/tabfiles-py +++ b/tests/ts/libmount/tabfiles-py @@ -9,7 +9,7 @@ TS_DESC="tab files-py" ts_init "$*" ts_init_py libmount -if [ -f "$ASAN_SYMBOLIZER_PATH" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi diff --git a/tests/ts/libmount/tabfiles-tags-py b/tests/ts/libmount/tabfiles-tags-py index 5e72a6f907..5dd3332825 100755 --- a/tests/ts/libmount/tabfiles-tags-py +++ b/tests/ts/libmount/tabfiles-tags-py @@ -10,7 +10,7 @@ ts_skip_nonroot ts_init_py libmount -if [ -f "$ASAN_SYMBOLIZER_PATH" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi diff --git a/tests/ts/libmount/update-py b/tests/ts/libmount/update-py index 66f175485b..369a521b13 100755 --- a/tests/ts/libmount/update-py +++ b/tests/ts/libmount/update-py @@ -10,7 +10,7 @@ ts_init "$*" ts_init_py libmount ts_skip_nonroot -if [ -f "$ASAN_SYMBOLIZER_PATH" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi -- 2.47.3