]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test/udev-test.pl: suppress umount error message at startup
authorMartin Wilck <mwilck@suse.com>
Thu, 26 Apr 2018 11:25:11 +0000 (13:25 +0200)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Mon, 25 Jan 2021 14:05:18 +0000 (15:05 +0100)
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.

(cherry picked from commit f1cb0860549e775be5f91237b5a3b97698dd14dd)

Related: #1642728

test/udev-test.pl

index 2866fdb77a134087c2fb75a9e0be4f55090241fb..33a76ad292bd0a63267d9e37324f7973ff760502 100755 (executable)
@@ -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";