From: Frantisek Sumsal Date: Fri, 26 Aug 2022 16:40:53 +0000 (+0200) Subject: test: drop old DS records if present X-Git-Tag: v252-rc1~302^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad3d0c8a30487dec5865393b56d686616a3b6998;p=thirdparty%2Fsystemd.git test: drop old DS records if present This makes the test re-runnable without having to go through the cleanup and setup phases again. --- diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh index 43741227e13..84466153835 100755 --- a/test/units/testsuite-75.sh +++ b/test/units/testsuite-75.sh @@ -72,9 +72,14 @@ resolvectl log-level debug # We need to manually propagate the DS records of onlinesign.test. to the parent # zone, since they're generated online knotc zone-begin test. +if knotc zone-get test. onlinesign.test. ds | grep .; then + # Drop any old DS records, if present (e.g. on test re-run) + knotc zone-unset test. onlinesign.test. ds +fi +# Propagate the new DS records while read -ra line; do knotc zone-set test. "${line[@]}" -done < <(keymgr onlinesign.test ds) +done < <(keymgr onlinesign.test. ds) knotc zone-commit test. ### SETUP END ###