From b09ed927d79c17d7cc9eec5224118b4effd3a896 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 12 Mar 2021 11:39:12 +0100 Subject: [PATCH] tests: update mountpoint return code chack This is necessary due to e0ecd196414c03699cd8e8dd2c6f4fe533999837. Signed-off-by: Karel Zak --- tests/ts/mount/move | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/ts/mount/move b/tests/ts/mount/move index e828a8942c..9d2723a751 100755 --- a/tests/ts/mount/move +++ b/tests/ts/mount/move @@ -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=$? -- 2.47.3