tests: update mountpoint return code chack

This is necessary due to e0ecd19641.

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-03-12 11:39:12 +01:00
parent 4e9be5a439
commit b09ed927d7
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ mount_and_check --move $DIR_A $DIR_B
for f in `find $DIR_PRIVATE2 $DIR_PRIVATE`; do
xo="$($TS_CMD_MOUNTPOINT -q "$f" 2>&1)"
x=$?
# mountpoint(1) returns 32 if mountpoint does not exist, map it to 1 to
# be compatible with findmnt(8)
if [ "$x" = "32" ]; then
x=1
fi
yo="$($TS_CMD_FINDMNT --kernel --mountpoint "$f" 2>&1)"
y=$?