From e70abc2ea84284a4fd6c849c79d719d0da2d9dbc Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 13 Feb 2023 22:17:28 +0100 Subject: smoketest: tftp: T4012: extend process scanning loop for VRFs This extends commit c6016db17ef ("smoketest: tftp: T4012: add busy waiting loop when validating service availability") so that we also wait when reading in the VRF result(s). --- smoketest/scripts/cli/test_service_tftp-server.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'smoketest/scripts/cli/test_service_tftp-server.py') diff --git a/smoketest/scripts/cli/test_service_tftp-server.py b/smoketest/scripts/cli/test_service_tftp-server.py index 122d66d8c..642b6af88 100755 --- a/smoketest/scripts/cli/test_service_tftp-server.py +++ b/smoketest/scripts/cli/test_service_tftp-server.py @@ -56,6 +56,7 @@ class TestServiceTFTPD(VyOSUnitTestSHIM.TestCase): while count < 10: count += 1 tmp = process_named_running(PROCESS_NAME) + print(tmp) if tmp: break sleep(1) self.assertTrue(tmp) @@ -147,7 +148,13 @@ class TestServiceTFTPD(VyOSUnitTestSHIM.TestCase): self.assertIn('--create --umask 000', config) # Check for process in VRF - tmp = cmd(f'ip vrf pids {vrf}') + count = 0 + while count < 10: + count += 1 + tmp = cmd(f'ip vrf pids {vrf}') + print(tmp) + if tmp: break + sleep(1) self.assertIn(PROCESS_NAME, tmp) # delete VRF -- cgit v1.2.3