daandemeyer / rpms / systemd

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