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/ts/libmount/context | |
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/ts/libmount/context')
-rwxr-xr-x | tests/ts/libmount/context | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context index 2566ccb53..bcb9534e8 100755 --- a/tests/ts/libmount/context +++ b/tests/ts/libmount/context @@ -36,8 +36,8 @@ ts_scsi_debug_init dev_size_mb=100 DEVNAME=$(basename $TS_DEVICE) MOUNTINFO_ONLY=yes -grep -q '#define USE_LIBMOUNT_SUPPORT_MTAB' ${top_builddir}/config.h -if [ $? == 0 ]; then +has_mtab=$( ts_has_mtab_support ) +if [ "$has_mtab" == "yes" ]; then MOUNTINFO_ONLY=no fi |