From 77beaf82ac357985b1ef002c6ffc4d99f97b6844 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 6 Jun 2025 14:26:14 +0200 Subject: [PATCH] tests: helpers: suppress mount error messages Prevent repeated error messages from spamming the console. Signed-off-by: Florian Westphal --- tests/shell/helpers/test-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2