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

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