summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-23 19:21:38 +0100
committerGitHub <noreply@github.com>2024-12-23 19:21:38 +0100
commit6f6aa048da82d579e0b116ba346ec1dd28e65436 (patch)
tree6d42c55911867f0df5c6ebb2bec95ea90b6bf113 /smoketest
parentc9febcc4c53d0bce09ce6b62d6fba12ea017d3f1 (diff)
parente1d34e5624ddaac4b8d3fcf69e2387461b4177b1 (diff)
downloadvyos-1x-6f6aa048da82d579e0b116ba346ec1dd28e65436.tar.gz
vyos-1x-6f6aa048da82d579e0b116ba346ec1dd28e65436.zip
Merge pull request #4252 from c-po/smoketest-fixes
smoketest: T6746: T5791: additional fixes/logic hardening
Diffstat (limited to 'smoketest')
-rw-r--r--smoketest/scripts/cli/base_vyostest_shim.py4
-rwxr-xr-xsmoketest/scripts/cli/test_service_dns_dynamic.py2
2 files changed, 5 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/base_vyostest_shim.py b/smoketest/scripts/cli/base_vyostest_shim.py
index d95071d1a..9cf6a653a 100644
--- a/smoketest/scripts/cli/base_vyostest_shim.py
+++ b/smoketest/scripts/cli/base_vyostest_shim.py
@@ -27,6 +27,7 @@ from vyos import ConfigError
from vyos.defaults import commit_lock
from vyos.utils.process import cmd
from vyos.utils.process import run
+from vyos.utils.process import process_named_running
save_config = '/tmp/vyos-smoketest-save'
@@ -88,6 +89,9 @@ class VyOSUnitTestSHIM:
# during a commit there is a process opening commit_lock, and run() returns 0
while run(f'sudo lsof -nP {commit_lock}') == 0:
sleep(0.250)
+ # wait for FRR reload to be complete
+ while process_named_running('frr-reload.py'):
+ sleep(0.250)
# reset getFRRconfig() guard timer
self.commit_guard = time()
diff --git a/smoketest/scripts/cli/test_service_dns_dynamic.py b/smoketest/scripts/cli/test_service_dns_dynamic.py
index 3ce459e44..28380f6d4 100755
--- a/smoketest/scripts/cli/test_service_dns_dynamic.py
+++ b/smoketest/scripts/cli/test_service_dns_dynamic.py
@@ -44,7 +44,7 @@ class TestServiceDDNS(VyOSUnitTestSHIM.TestCase):
def tearDown(self):
# Check for running process
- self.assertTrue(process_named_running(DDCLIENT_PNAME))
+ self.assertTrue(process_named_running(DDCLIENT_PNAME, timeout=5))
# Delete DDNS configuration
self.cli_delete(base_path)