]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Fix the exit code when the recursor fails to start in our tests 11256/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 31 Jan 2022 11:45:36 +0000 (12:45 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 31 Jan 2022 11:45:36 +0000 (12:45 +0100)
regression-tests.recursor-dnssec/recursortests.py

index 1d2d66dbda42ed50bae38e897bf20cc08db62db5..86d8f441b29674f7b050aed46d123814dab9c4ea 100644 (file)
@@ -626,7 +626,7 @@ distributor-threads={threads}""".format(confdir=confdir,
             with open(logFile, 'r') as fdLog:
                 print(fdLog.read())
             print(f"*** End startRecursor log for {logFile} ***")
-            raise AssertionError('%s failed (%d)' % (recursorcmd, _recursor.returncode))
+            raise AssertionError('%s failed (%d)' % (recursorcmd, cls._recursor.returncode))
 
     @classmethod
     def wipeRecursorCache(cls, confdir):