[LTP] [PATCH 1/1] network/mc_cmds: fix testing with iproute2 <= ss161212
Alexey Kodanev
alexey.kodanev@oracle.com
Wed Jan 18 14:52:01 CET 2017
On 01/18/2017 03:57 PM, Petr Vorel wrote:
> - ip maddr show $(tst_iface) | grep -q '224.0.0.1' || \
> - tst_brkm TFAIL "all-host-group for $(tst_iface) not joined"
> + ip maddr show $(tst_iface) | grep -q '224.0.0.1'
> + if [ $? -ne 0 ]; then
> + tst_resm TINFO "ip failed to detect multicast, parsing /proc/net/igmp"
Would be better if we pass 'TWARN' flag here.
> + grep "$(tst_iface)\s*:" -A 1 /proc/net/igmp | tail -1 |grep -q '\s010000E0\s' || \
> + tst_brkm TFAIL "all-host-group for $(tst_iface) not joined"
I think it's safe to omit 'tail -1'.
Thanks,
Alexey
More information about the ltp
mailing list