daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
bd1529
From 453df9eb2bbfa34f3e4b78e917812f0ac6958010 Mon Sep 17 00:00:00 2001
bd1529
From: Martin Wilck <mwilck@suse.com>
bd1529
Date: Thu, 26 Apr 2018 13:25:11 +0200
bd1529
Subject: [PATCH] test/udev-test.pl: suppress umount error message at startup
bd1529
bd1529
umount emits an error message "no mount point specified" if the
bd1529
tmpfs isn't mounted yet, which is the normal case.
bd1529
Suppress that by redirecting stderr.
bd1529
bd1529
(cherry picked from commit f1cb0860549e775be5f91237b5a3b97698dd14dd)
bd1529
bd1529
Related: #1642728
bd1529
---
bd1529
 test/udev-test.pl | 2 +-
bd1529
 1 file changed, 1 insertion(+), 1 deletion(-)
bd1529
bd1529
diff --git a/test/udev-test.pl b/test/udev-test.pl
bd1529
index 2866fdb77a..33a76ad292 100755
bd1529
--- a/test/udev-test.pl
bd1529
+++ b/test/udev-test.pl
bd1529
@@ -2405,7 +2405,7 @@ sub major_minor_test {
bd1529
 }
bd1529
 
bd1529
 sub udev_setup {
bd1529
-        system("umount", $udev_tmpfs);
bd1529
+        system("umount \"$udev_tmpfs\" 2>/dev/null");
bd1529
         rmdir($udev_tmpfs);
bd1529
         mkdir($udev_tmpfs) || die "unable to create udev_tmpfs: $udev_tmpfs\n";
bd1529