diff options
author | Christian Breunig <christian@breunig.cc> | 2023-02-13 22:17:28 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-02-13 22:20:08 +0100 |
commit | e70abc2ea84284a4fd6c849c79d719d0da2d9dbc (patch) | |
tree | f304ffacbfbbb51a8a33c584ca0a6cae171fc2d3 /smoketest/scripts/cli/test_service_tftp-server.py | |
parent | 5e56daaff4ec53a387abbd3ad879e916a2bfa373 (diff) | |
download | vyos-1x-e70abc2ea84284a4fd6c849c79d719d0da2d9dbc.tar.gz vyos-1x-e70abc2ea84284a4fd6c849c79d719d0da2d9dbc.zip |
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).
Diffstat (limited to 'smoketest/scripts/cli/test_service_tftp-server.py')
-rwxr-xr-x | smoketest/scripts/cli/test_service_tftp-server.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 |