]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: Fix mountpoint test failure in build chroots.
authorMark Hindley <mark@hindley.org.uk>
Mon, 22 Jun 2020 23:52:09 +0000 (23:52 +0000)
committerKarel Zak <kzak@redhat.com>
Wed, 24 Jun 2020 13:44:44 +0000 (15:44 +0200)
commit3e9395811708b5ebcf2c5079ff0cb6d18694a3cc
tree035b6b1ef9ded158bf45d39dc30cdde94fc37cc0
parent67fcb857395dd59e518d72561571aba731d0d5f4
tests: Fix mountpoint test failure in build chroots.

The test assumed that / was a mountpoint. This is not always the case, for
example in pbuilder/cowbuilder chroots. So use / if findmnt verifies it is a
mountpoint, otherwise use the first mountpoint found. Skip the test if no
mountpoints are found.

Signed-off-by: Mark Hindley <mark@hindley.org.uk>
tests/expected/misc/mountpoint-default
tests/expected/misc/mountpoint-nofollow
tests/ts/misc/mountpoint