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:
parent
4e9be5a439
commit
b09ed927d7
|
@ -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=$?
|
||||
|
||||
|
|
Loading…
Reference in New Issue