]> granicus.if.org Git - pdns/commitdiff
change zone backup during tests to zone restore
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 24 Jul 2013 19:28:21 +0000 (21:28 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 31 Jul 2013 09:39:37 +0000 (11:39 +0200)
regression-tests/.gitignore
regression-tests/start-test-stop
regression-tests/test.dyndns.orig [moved from regression-tests/test.dyndns with 100% similarity]

index 0f10075d14b14fcae6095af8c22937f724cc65f2..679c13c93579060f874d31b2e76247fb2c11eec2 100644 (file)
@@ -22,3 +22,4 @@ real_result
 /named-slave.conf
 */start
 */step.*
+/test.dyndns
index 05bbd107b5e62eddc4623b51d8cdff79c235b22d..759c8a134654658f8f12a7fbac784fb4437b82cc 100755 (executable)
@@ -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`