summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2018-04-26 13:25:11 +0200
committerMichal Sekletár <msekleta@redhat.com>2020-11-02 11:43:15 +0100
commitf1cb0860549e775be5f91237b5a3b97698dd14dd (patch)
treec8dc549e255347f00e0979eff633fce25050e72e
parenttest/sd-script.py: new helper script for udev testing (diff)
downloadsystemd-f1cb0860549e775be5f91237b5a3b97698dd14dd.tar.xz
systemd-f1cb0860549e775be5f91237b5a3b97698dd14dd.zip
test/udev-test.pl: suppress umount error message at startup
umount emits an error message "no mount point specified" if the tmpfs isn't mounted yet, which is the normal case. Suppress that by redirecting stderr.
-rwxr-xr-xtest/udev-test.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 790387e6809..5e362db6c55 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -2405,7 +2405,7 @@ sub major_minor_test {
}
sub udev_setup {
- system("umount", $udev_tmpfs);
+ system("umount \"$udev_tmpfs\" 2>/dev/null");
rmdir($udev_tmpfs);
mkdir($udev_tmpfs) || die "unable to create udev_tmpfs: $udev_tmpfs\n";