On 06/12/2015 09:09 AM, Cui Bixuan wrote: > Add new testcase for testing 'iptables -N/E' > > Signed-off-by: Cui Bixuan <cuibix...@huawei.com> > --- > testcases/network/iptables/iptables_tests.sh | 46 > +++++++++++++++++++++++++- > 1 files changed, 45 insertions(+), 1 deletions(-) > > ... > + > + iptables -L -v |grep chains > tst_iptables.out 2>&1 > + if [ $? -ne 0 ]; then > + tst_resm TFAIL "iptables append new chains failed." > + cat tst_iptables.err > + return > + fi > + > + iptables -E chains newchains > tst_iptables.out 2>&1 > + if [ $? -ne 0 ]; then > + tst_resm TFAIL "iptables command failed to change chains to" \ > + "newchains." > + cat tst_iptables.out > + return > + fi > + > + iptables -L -v |grep newchains > tst_iptables.out 2>&1 > + if [ $? -ne 0 ]; then > + tst_resm TFAIL "iptables change chains failed." > + cat tst_iptables.err
Should be "cat tst_iptables.out" not "*.err". Thanks, Alexey ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list