]> git.ipfire.org Git - thirdparty/systemd.git/commit
test/test-functions: avoid stderr noise, only umount on cleanup if mountpoint
authorDan Streetman <ddstreet@canonical.com>
Tue, 13 Aug 2019 11:50:59 +0000 (07:50 -0400)
committerDan Streetman <ddstreet@canonical.com>
Sat, 17 Aug 2019 16:28:41 +0000 (12:28 -0400)
commit9e19a8b02848d63b34d68f8ecfdf028ec4ea4833
tree0e056119208dd38a1a79af1958764a0eb7dbb2c7
parent3a2acd9ee0fa03e8ae2e5865c85ca0268d51b98b
test/test-functions: avoid stderr noise, only umount on cleanup if mountpoint

Only umount it during cleanup if the $TESTDIR/root dir is a mountpoint.
This avoids adding noise to the stderr log such as:

mountpoint: /var/tmp/systemd-test.waLOFT/root: No such file or directory
test/test-functions