--- testcases/network/iptables/iptables_tests.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/testcases/network/iptables/iptables_tests.sh b/testcases/network/iptables/iptables_tests.sh index 028d54e..641f327 100755 --- a/testcases/network/iptables/iptables_tests.sh +++ b/testcases/network/iptables/iptables_tests.sh @@ -165,13 +165,21 @@ test01() return $RC else chaincnt=$(grep -c Chain $LTPTMP/tst_iptables.out) - if [ $chaincnt -ne 3 ]; then - tst_res TFAIL $LTPTMP/tst_iptables.out \ - "$TCID: $cmd failed to list rules. Reason:" - return $chaincnt - else - tst_resm TINFO "$TCID: $cmd lists rules." - fi + # for debian or ubuntu + if [ -f /etc/debian_version ]; then + if [ $chaincnt -ne 4 ]; then + tst_res TFAIL $LTPTMP/tst_iptables.out \ + "$TCID: $cmd failed to list rules. Reason:" + return $chaincnt + fi + else + if [ $chaincnt -ne 3 ]; then + tst_res TFAIL $LTPTMP/tst_iptables.out \ + "$TCID: $cmd failed to list rules. Reason:" + return $chaincnt + fi + fi + tst_resm TINFO "$TCID: $cmd lists rules." fi local cmd="iptables -L -t mangle" -- 1.7.9.5 ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list