]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (mount) strip UNIQID= from utab in special test
authorKarel Zak <kzak@redhat.com>
Thu, 25 Jun 2026 13:18:52 +0000 (15:18 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 29 Jun 2026 09:13:18 +0000 (11:13 +0200)
The sed pattern 'ID=[[:digit:]]* ' also matches the ID= part inside
UNIQID=, causing mangled output. Strip UNIQID= first.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/mount/special

index fc210e26dda6d63d96e4d44920f94623efc482c9..793425cee49699de6ac029ea86a68f6d6cab2638 100755 (executable)
@@ -82,6 +82,7 @@ EOF
                cat "$LIBMOUNT_UTAB" \
                        | grep "$mountpoint" \
                        | sed -e "s|$mountpoint|/mountpoint|g" \
+                             -e 's/UNIQID=[[:digit:]]* //g' \
                              -e 's/ID=[[:digit:]]* //g' \
                        &> "$TS_OUTPUT"
                $TS_CMD_UMOUNT "$mountpoint"