]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: fix 102-hwtimestamp test for new ethtool
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Aug 2020 14:17:05 +0000 (16:17 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Aug 2020 14:19:13 +0000 (16:19 +0200)
New ethtool using netlink messages has a different output.

test/system/102-hwtimestamp

index 86f2287442a231e754f55c09a7733aede3fdff72..6b86d20de5e3f7fd73fcbeac0a731fe1e72af478 100755 (executable)
@@ -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