From: Phil Sutter Date: Sun, 22 Sep 2019 11:10:10 +0000 (+0200) Subject: tests: shell: Improve ipt-restore/0001load-specific-table_0 a bit X-Git-Tag: v1.8.5~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=314c5b16b3c78ac7ee20326f69636f68762a3f9d;p=thirdparty%2Fiptables.git tests: shell: Improve ipt-restore/0001load-specific-table_0 a bit Instead of reading from stdin, pass dump file as regular parameter. This way dump file name occurs in 'bash -x' output which helps finding out where things fail. Signed-off-by: Phil Sutter --- diff --git a/iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0 b/iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0 index ce3bef3a..3f443a98 100755 --- a/iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0 +++ b/iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0 @@ -22,7 +22,7 @@ do_simple() table="${2}" dumpfile="$(dirname "${0}")/dumps/${iptables}.dump" - "$XT_MULTI" "${iptables}-restore" --table="${table}" <"${dumpfile}"; rv=$? + "$XT_MULTI" "${iptables}-restore" --table="${table}" "${dumpfile}"; rv=$? if [ "${rv}" -ne 0 ]; then RET=1