From 4cf6b2939790c0fd11ff6cdc158a3f6787f77f05 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 20 Aug 2020 16:17:05 +0200 Subject: [PATCH] test: fix 102-hwtimestamp test for new ethtool New ethtool using netlink messages has a different output. --- test/system/102-hwtimestamp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/system/102-hwtimestamp b/test/system/102-hwtimestamp index 86f2287..6b86d20 100755 --- a/test/system/102-hwtimestamp +++ b/test/system/102-hwtimestamp @@ -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