Merge branch 'test_fail_faster' into 'master'

Test fail faster

See merge request knot/knot-dns!1835
This commit is contained in:
Daniel Salzman 2025-12-09 13:12:33 +01:00
commit 0537ab6d1f
2 changed files with 4 additions and 4 deletions

View file

@ -118,8 +118,8 @@ class Server(object):
START_WAIT = 2
START_WAIT_VALGRIND = 5
START_WAIT_ATTEMPTS = 60
START_MAX_ATTEMPTS = 10 # During the test, fatal.
START_INIT_ATTEMPTS = 3 # When starting a test, non-fatal.
START_MAX_ATTEMPTS = 3 # During the test, fatal.
START_INIT_ATTEMPTS = 1 # When starting a test, non-fatal.
STOP_TIMEOUT = 30
COMPILE_TIMEOUT = 60
DIG_TIMEOUT = 5
@ -880,7 +880,7 @@ class Server(object):
check_log("ZONE WAIT %s: %s" % (self.name, zone.name))
attempts = 60 if not self.valgrind else 100
attempts = 15 if not self.valgrind else 25
for t in range(attempts):
try:
if use_ctl:

View file

@ -29,7 +29,7 @@ def repo_file(*path):
class Test(object):
'''Specification of DNS test topology'''
MAX_START_TRIES = 10
MAX_START_TRIES = 3
XDP_LOCK_FILE = "/tmp/knottest-xdp-lock"
LOCAL_ADDR_COMMON = {4: "127.0.0.1", 6: "::1"}
LOCAL_ADDR_MULTI = LOCAL_ADDR_COMMON