fstests: filter readonly mount error messages
authorEryu Guan <eguan@redhat.com>
Tue, 14 Nov 2017 10:26:45 +0000 (18:26 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 26 Nov 2017 07:38:55 +0000 (15:38 +0800)
commit69854f8dc5cec666578477a2e7979bcb4ea91cf5
tree03d050be7e6f7d6c1ed525080f168552e8579318
parent40737eac013e03d7daa09dbf0de8887f14a23853
fstests: filter readonly mount error messages

util-linux commit 6dede2f2f7c5 ("libmount: support MS_RDONLY on
write-protected devices") changed the error message on read-only
block device, and in the failure case printed one line message
instead of two (for details please see comments in common/filter),
and this change broke generic/050 and overlay/035.

Fix it by adding more filter rules to _filter_ro_mount and updating
associated .out files to unify the output from both old and new
util-linux versions.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/filter
tests/generic/050
tests/generic/050.out
tests/overlay/035
tests/overlay/035.out