diff options
author | Martin Wilck <mwilck@suse.com> | 2018-04-26 13:25:11 +0200 |
---|---|---|
committer | The Plumber <50238977+systemd-rhel-bot@users.noreply.github.com> | 2021-01-25 15:05:18 +0100 |
commit | 453df9eb2bbfa34f3e4b78e917812f0ac6958010 (patch) | |
tree | b141a946af00eb3606fca94339a32260473b89f5 /test | |
parent | 6c3191e979165700f98903b76621c214186a110c (diff) | |
download | systemd-453df9eb2bbfa34f3e4b78e917812f0ac6958010.tar.gz |
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.
(cherry picked from commit f1cb0860549e775be5f91237b5a3b97698dd14dd)
Related: #1642728
Diffstat (limited to 'test')
-rwxr-xr-x | test/udev-test.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 2866fdb77a..33a76ad292 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"; |