From: Evgeny Vereshchagin Date: Wed, 1 Jul 2020 21:26:56 +0000 (+0000) Subject: tests: ignore the python libmount tests when they're run under UBSan X-Git-Tag: v2.36-rc2~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6af515811b756fdc3350482a3bb07c615618576f;p=thirdparty%2Futil-linux.git tests: ignore the python libmount tests when they're run under UBSan ts_init_py meddles with LD_LIBRARY_PATH causing those tests to fail with ``` +Traceback (most recent call last): + File "/home/travis/build/karelzak/util-linux/libmount/python/test_mount_tab.py", line 8, in + import pylibmount as mnt +ImportError: /home/travis/build/karelzak/util-linux/.libs/libblkid.so.1: undefined symbol: __ubsan_handle_negate_overflow }}}-diff ``` --- diff --git a/tests/ts/libmount/context-py b/tests/ts/libmount/context-py index edbf75f076..959d79058b 100755 --- a/tests/ts/libmount/context-py +++ b/tests/ts/libmount/context-py @@ -20,7 +20,7 @@ ts_check_prog "mkfs.ext4" ts_init_py libmount -if [ "$TS_ENABLE_ASAN" == "yes" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi diff --git a/tests/ts/libmount/context-utab-py b/tests/ts/libmount/context-utab-py index 0baff118c5..94c9e5b9a3 100755 --- a/tests/ts/libmount/context-utab-py +++ b/tests/ts/libmount/context-utab-py @@ -19,7 +19,7 @@ ts_check_prog "mkfs.ext4" ts_init_py libmount -if [ "$TS_ENABLE_ASAN" == "yes" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi diff --git a/tests/ts/libmount/tabfiles-py b/tests/ts/libmount/tabfiles-py index 832e6d980e..9754afec71 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 [ "$TS_ENABLE_ASAN" == "yes" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi diff --git a/tests/ts/libmount/tabfiles-tags-py b/tests/ts/libmount/tabfiles-tags-py index 5dd3332825..d252a5478a 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 [ "$TS_ENABLE_ASAN" == "yes" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi diff --git a/tests/ts/libmount/update-py b/tests/ts/libmount/update-py index 369a521b13..e4bba9c429 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 [ "$TS_ENABLE_ASAN" == "yes" ]; then +if [ "$TS_ENABLE_ASAN" == "yes" -o "$TS_ENABLE_UBSAN" == "yes" ]; then TS_KNOWN_FAIL="yes" fi