]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-75-RESOLVED: revert changes done in each test case
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Feb 2025 13:35:19 +0000 (22:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 16 Feb 2025 13:55:22 +0000 (22:55 +0900)
test/units/TEST-75-RESOLVED.sh

index 3ba908981f0e666aabebce043e717a7814d55bc9..8afd5a64764acca746c576e29750405316f7f351 100755 (executable)
@@ -942,6 +942,7 @@ testcase_12_resolvectl2() {
     cleanup() {
         rm -f /run/systemd/resolved.conf.d/reload.conf
         systemctl reload systemd-resolved.service
+        resolvectl revert dns0
     }
 
     trap cleanup RETURN
@@ -1023,6 +1024,7 @@ testcase_13_varlink_subscribe_dns_configuration() {
         echo "=========="
         rm -f /run/systemd/resolved.conf.d/global-dns.conf
         restart_resolved
+        resolvectl revert dns0
     }
 
     trap cleanup RETURN ERR