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

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