From d5d97c2f148e3dd4b181339469d096871e5f0579 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 24 Jul 2013 21:28:21 +0200 Subject: [PATCH] change zone backup during tests to zone restore --- regression-tests/.gitignore | 1 + regression-tests/start-test-stop | 12 +++++------- regression-tests/{test.dyndns => test.dyndns.orig} | 0 3 files changed, 6 insertions(+), 7 deletions(-) rename regression-tests/{test.dyndns => test.dyndns.orig} (100%) diff --git a/regression-tests/.gitignore b/regression-tests/.gitignore index 0f10075d1..679c13c93 100644 --- a/regression-tests/.gitignore +++ b/regression-tests/.gitignore @@ -22,3 +22,4 @@ real_result /named-slave.conf */start */step.* +/test.dyndns diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index 05bbd107b..759c8a134 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -133,10 +133,13 @@ __EOF__ fi make -C ../pdns sdig nsec3dig || exit 1 -# Copy zones because the test might modify them (well only the dyndns stuff, but let's make this work for others as well) +# Copy original zones because the test might modify them (well only the dyndns stuff, but let's make this work for others as well) for zone in $(grep zone named.conf | cut -f2 -d\") do - cp $zone $zone.backup + if [ -f $zone.orig ] + then + cp -f $zone.orig $zone + fi done rm -f pdns*.pid @@ -775,11 +778,6 @@ fi kill $(cat pdns*.pid) rm pdns*.pid -for zone in $(grep zone named.conf | cut -f2 -d\") -do - mv $zone.backup $zone -done - if [ -s "./failed_tests" ] then for t in `cat failed_tests` diff --git a/regression-tests/test.dyndns b/regression-tests/test.dyndns.orig similarity index 100% rename from regression-tests/test.dyndns rename to regression-tests/test.dyndns.orig -- 2.50.0