]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests: 0034get_element_0: do not discard stderr
authorFlorian Westphal <fw@strlen.de>
Fri, 21 Feb 2020 23:02:25 +0000 (00:02 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 22 Feb 2020 08:54:25 +0000 (09:54 +0100)
run_tests.sh alreadty discards stderr by default, but will show it in
case the test script is run directly (passed as argument).

Discarding stderr also in the script prevents one from seeing
BUG() assertions and the like.

Signed-off-by: Florian Westphal <fw@strlen.de>
tests/shell/testcases/sets/0034get_element_0

index c7e7298a4aac18da26b78b97af85d13993165aa8..e23dbda09b45c740e3ea2900dd5b9a8930d7221b 100755 (executable)
@@ -3,7 +3,7 @@
 RC=0
 
 check() { # (elems, expected)
-       out=$($NFT get element ip t s "{ $1 }" 2>/dev/null)
+       out=$($NFT get element ip t s "{ $1 }")
        out=$(grep "elements =" <<< "$out")
        out="${out#* \{ }"
        out="${out% \}}"