timeout_signal=SIGABRT
EOF
- systemctl restart systemd-udevd.service
+ systemctl reload systemd-udevd.service
}
# shellcheck disable=SC2317
rm -rf "$TMPDIR"
rm -f "$TEST_RULE" "$TEST_CONF"
- systemctl restart systemd-udevd.service
+ systemctl reload systemd-udevd.service
}
run_test_timeout() {
# Forcibly kills sleep command invoked by the udev rule before restarting,
# otherwise systemctl restart below will takes longer.
killall -KILL sleep
- systemctl restart systemd-udevd.service
+ udevadm control --reload
ip link del "$IFNAME"
}
SUBSYSTEM=="net", ACTION=="change", KERNEL=="${IFNAME}", OPTIONS="log_level=debug", RUN+="/usr/bin/sleep 1000"
EOF
-systemctl restart systemd-udevd.service
+udevadm control --reload
ip link add "$IFNAME" type dummy
IFINDEX=$(ip -json link show "$IFNAME" | jq '.[].ifindex')