]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
tests: shell: Improve ipt-restore/0001load-specific-table_0 a bit
authorPhil Sutter <phil@nwl.cc>
Sun, 22 Sep 2019 11:10:10 +0000 (13:10 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Apr 2020 10:54:38 +0000 (12:54 +0200)
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 <phil@nwl.cc>
iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0

index ce3bef3a88355f4d044655c91b942affe97f8c4f..3f443a980ab3af2f88ecacef11b8f2cec129ceb9 100755 (executable)
@@ -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