test: fix 102-hwtimestamp test for new ethtool

New ethtool using netlink messages has a different output.
This commit is contained in:
Miroslav Lichvar 2020-08-20 16:17:05 +02:00
parent 571359b366
commit 4cf6b29397

View file

@ -7,7 +7,7 @@
hwts_iface=""
for iface_path in /sys/class/net/*; do
iface=$(basename "$iface_path")
if ethtool -T "$iface" 2> /dev/null | grep -q HWTSTAMP_FILTER_ALL; then
if ethtool -T "$iface" 2> /dev/null | grep -q ' all\($\| \)'; then
hwts_iface="$iface"
break
fi