]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: search mount point in canonicalized form in /proc/mounts
authorBernhard Voelker <mail@bernhard-voelker.de>
Fri, 27 Jul 2012 08:35:01 +0000 (10:35 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 30 Jul 2012 13:58:23 +0000 (15:58 +0200)
commitee9c04f48c142ca6b981a9061af25ebc9763903e
tree9fec549730fdc44ee28da40b50f4399c969b835f
parent454996c495de82c8cfaeeb4e99bbbfa84d509af0
tests: search mount point in canonicalized form in /proc/mounts

* tests/functions.sh (ts_is_mounted): Enhance to resolve symlinks in
given mount point before grep'ing in /proc/mount.

If the test directory is on a symlink, then e.g. tests/ts/cramfs/doubles
failed because the kernel keeps the mount entry in a canonicalized form
in /proc/mounts while this function searched for it with the original
path name.

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
tests/functions.sh