Blame SOURCES/0028-tests-0034get_element_0-do-not-discard-stderr.patch

3e48d9
From 4337d4eafe66b594b56b43261c8742d6b65d5ee8 Mon Sep 17 00:00:00 2001
3e48d9
From: Phil Sutter <psutter@redhat.com>
3e48d9
Date: Tue, 30 Jun 2020 16:20:23 +0200
3e48d9
Subject: [PATCH] tests: 0034get_element_0: do not discard stderr
3e48d9
3e48d9
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1832235
3e48d9
Upstream Status: nftables commit ff29e6c09aed9
3e48d9
3e48d9
commit ff29e6c09aed922a42e0e0551c34dd5d87067512
3e48d9
Author: Florian Westphal <fw@strlen.de>
3e48d9
Date:   Sat Feb 22 00:02:25 2020 +0100
3e48d9
3e48d9
    tests: 0034get_element_0: do not discard stderr
3e48d9
3e48d9
    run_tests.sh alreadty discards stderr by default, but will show it in
3e48d9
    case the test script is run directly (passed as argument).
3e48d9
3e48d9
    Discarding stderr also in the script prevents one from seeing
3e48d9
    BUG() assertions and the like.
3e48d9
3e48d9
    Signed-off-by: Florian Westphal <fw@strlen.de>
3e48d9
---
3e48d9
 tests/shell/testcases/sets/0034get_element_0 | 2 +-
3e48d9
 1 file changed, 1 insertion(+), 1 deletion(-)
3e48d9
3e48d9
diff --git a/tests/shell/testcases/sets/0034get_element_0 b/tests/shell/testcases/sets/0034get_element_0
3e48d9
index c7e7298..e23dbda 100755
3e48d9
--- a/tests/shell/testcases/sets/0034get_element_0
3e48d9
+++ b/tests/shell/testcases/sets/0034get_element_0
3e48d9
@@ -3,7 +3,7 @@
3e48d9
 RC=0
3e48d9
 
3e48d9
 check() { # (elems, expected)
3e48d9
-	out=$($NFT get element ip t s "{ $1 }" 2>/dev/null)
3e48d9
+	out=$($NFT get element ip t s "{ $1 }")
3e48d9
 	out=$(grep "elements =" <<< "$out")
3e48d9
 	out="${out#* \{ }"
3e48d9
 	out="${out% \}}"
3e48d9
-- 
252916
2.31.1
3e48d9