From: Florian Westphal Date: Fri, 6 Jun 2025 12:26:14 +0000 (+0200) Subject: tests: helpers: suppress mount error messages X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77beaf82ac357985b1ef002c6ffc4d99f97b6844;p=thirdparty%2Fnftables.git tests: helpers: suppress mount error messages Prevent repeated error messages from spamming the console. Signed-off-by: Florian Westphal --- diff --git a/tests/shell/helpers/test-wrapper.sh b/tests/shell/helpers/test-wrapper.sh index c016e0ce..4a7e8b7b 100755 --- a/tests/shell/helpers/test-wrapper.sh +++ b/tests/shell/helpers/test-wrapper.sh @@ -62,7 +62,7 @@ if [ "$NFT_TEST_HAS_UNSHARED_MOUNT" = y ] ; then # Note that this also hides everything that might reside in /var/run. # That is desirable, as tests should not depend on content there (or if # they do, we need to explicitly handle it as appropriate). - if mount -t tmpfs --make-private tmpfs "/var/run" ; then + if mount -t tmpfs --make-private tmpfs "/var/run" 2>/dev/null ; then CLEANUP_UMOUNT_VAR_RUN=y fi mkdir -p /var/run/netns