diff options
author | Phil Sutter <phil@nwl.cc> | 2019-09-22 13:10:10 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-04-23 12:54:38 +0200 |
commit | 314c5b16b3c78ac7ee20326f69636f68762a3f9d (patch) | |
tree | 59d89bad6aa91565e38294408f8129a57c9afad0 /iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0 | |
parent | 8062bc9fca71ee9ee4fa00b2e8bb86536d6ad91f (diff) |
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 <phil@nwl.cc>
Diffstat (limited to 'iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0')
-rwxr-xr-x | iptables/tests/shell/testcases/ipt-restore/0001load-specific-table_0 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |