]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Grant a bit more time for the DNSdist process to exit 15306/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Mar 2025 13:40:21 +0000 (14:40 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 20 Mar 2025 13:40:21 +0000 (14:40 +0100)
regression-tests.dnsdist/dnsdisttests.py

index fbf757454d322bdfa0441c26ce669eba120a8bf9..81457e5c40b30dd7f363a6d27263c8efe2c501a9 100644 (file)
@@ -224,7 +224,7 @@ class DNSDistTest(AssertEqualDNSMessageMixin, unittest.TestCase):
             return
         try:
             p.terminate()
-            for count in range(20):
+            for count in range(50):
                 x = p.poll()
                 if x is not None:
                     break
@@ -234,7 +234,10 @@ class DNSDistTest(AssertEqualDNSMessageMixin, unittest.TestCase):
                 p.kill()
                 p.wait()
             if p.returncode != 0:
-              raise AssertionError('Process exited with return code %d' % (p.returncode))
+              if p.returncode < 0:
+                raise AssertionError('Process was killed by signal %d' % (-p.returncode))
+              else:
+                raise AssertionError('Process exited with return code %d' % (p.returncode))
         except OSError as e:
             # There is a race-condition with the poll() and
             # kill() statements, when the process is dead on the