From ff29e6c09aed922a42e0e0551c34dd5d87067512 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 22 Feb 2020 00:02:25 +0100 Subject: tests: 0034get_element_0: do not discard stderr 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 --- tests/shell/testcases/sets/0034get_element_0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shell/testcases/sets/0034get_element_0 b/tests/shell/testcases/sets/0034get_element_0 index c7e7298a..e23dbda0 100755 --- a/tests/shell/testcases/sets/0034get_element_0 +++ b/tests/shell/testcases/sets/0034get_element_0 @@ -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% \}}" -- cgit v1.2.3