From: Yu Watanabe Date: Sun, 16 Feb 2025 13:16:34 +0000 (+0900) Subject: TEST-75-RESOLVED: drop unnecessary symlink creation X-Git-Tag: v258-rc1~1289^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad252c1a5c87d9acdfc12f7813824516d73325e;p=thirdparty%2Fsystemd.git TEST-75-RESOLVED: drop unnecessary symlink creation It is always done in setup(). --- diff --git a/test/units/TEST-75-RESOLVED.sh b/test/units/TEST-75-RESOLVED.sh index cf78e8b6dd7..3ba908981f0 100755 --- a/test/units/TEST-75-RESOLVED.sh +++ b/test/units/TEST-75-RESOLVED.sh @@ -850,7 +850,6 @@ testcase_11_nft() { echo "[Resolve]" echo "StaleRetentionSec=1d" } >/run/systemd/resolved.conf.d/test.conf - ln -svf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf systemctl reload systemd-resolved.service run dig stale1.unsigned.test -t A @@ -1096,10 +1095,6 @@ testcase_14_refuse_record_types() { # shellcheck disable=SC2317 cleanup() { rm -f /run/systemd/resolved.conf.d/refuserecords.conf - if [[ -e /etc/resolv.conf.bak ]]; then - rm -f /etc/resolv.conf - mv /etc/resolv.conf.bak /etc/resolv.conf - fi restart_resolved } trap cleanup RETURN ERR @@ -1109,11 +1104,8 @@ testcase_14_refuse_record_types() { echo "[Resolve]" echo "RefuseRecordTypes=AAAA SRV TXT" } >/run/systemd/resolved.conf.d/refuserecords.conf - if [[ -e /etc/resolv.conf ]]; then - mv /etc/resolv.conf /etc/resolv.conf.bak - fi - ln -svf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf systemctl reload systemd-resolved.service + run dig localhost -t AAAA grep -qF "status: REFUSED" "$RUN_OUT"