daandemeyer / rpms / systemd

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