diff options
author | Karel Zak | 2016-04-15 14:10:23 +0200 |
---|---|---|
committer | Karel Zak | 2016-04-15 14:10:23 +0200 |
commit | edeb6223fed8f5e5b4088d34007c3860c928906a (patch) | |
tree | 0fca6757299369352bc8ca166d8aa890d5e9b805 /tests/functions.sh | |
parent | libmount: fix mnt_table_parse_mtab() logic (diff) | |
download | kernel-qcow2-util-linux-edeb6223fed8f5e5b4088d34007c3860c928906a.tar.gz kernel-qcow2-util-linux-edeb6223fed8f5e5b4088d34007c3860c928906a.tar.xz kernel-qcow2-util-linux-edeb6223fed8f5e5b4088d34007c3860c928906a.zip |
tests: make tests more portable due to mtab
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r-- | tests/functions.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh index fe7ce6d7b..19e8a46b8 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -719,3 +719,13 @@ function ts_init_socket_to_file { ts_skip "socat socket stopped listening" fi } + +function ts_has_mtab_support { + grep -q '#define USE_LIBMOUNT_SUPPORT_MTAB' ${top_builddir}/config.h + if [ $? == 0 ]; then + echo "yes" + else + echo "no" + fi +} + |