From: Yu Watanabe Date: Tue, 16 Apr 2024 04:30:19 +0000 (+0900) Subject: test: add test case for 'networkctl cat' without arguments X-Git-Tag: v256-rc1~173^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F32297%2Fhead;p=thirdparty%2Fsystemd.git test: add test case for 'networkctl cat' without arguments --- diff --git a/test/units/testsuite-74.networkctl.sh b/test/units/testsuite-74.networkctl.sh index 6cd5267b721..d05de17bde0 100755 --- a/test/units/testsuite-74.networkctl.sh +++ b/test/units/testsuite-74.networkctl.sh @@ -15,6 +15,8 @@ at_exit() { {/usr/lib,/etc}/systemd/network/"$LINK_NAME" "/etc/systemd/network/${NETWORK_NAME}.d" \ "new" "+4" fi + + rm -f /run/systemd/networkd.conf.d/10-hoge.conf } trap at_exit EXIT @@ -110,3 +112,12 @@ ip_link="$(ip link show test2)" if systemctl --quiet is-active systemd-udevd; then assert_in 'alias test_alias' "$ip_link" fi + +mkdir -p /run/systemd/networkd.conf.d +cat >/run/systemd/networkd.conf.d/10-hoge.conf <