diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-02-14 23:21:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 23:21:12 +0000 |
commit | bf99fd11225413565ff04d95df441247ac4a02df (patch) | |
tree | d4c6d26dc44c176fdb7a2baf720743e686ac9d4b /smoketest/scripts/cli/test_service_tftp-server.py | |
parent | 9538a74382ffc7d27bd64baa4ccad7eb090c08cb (diff) | |
parent | e70abc2ea84284a4fd6c849c79d719d0da2d9dbc (diff) | |
download | vyos-1x-bf99fd11225413565ff04d95df441247ac4a02df.tar.gz vyos-1x-bf99fd11225413565ff04d95df441247ac4a02df.zip |
Merge pull request #1818 from c-po/equuleus
smoketest: tftp: T4012: extend process scanning loop for VRFs (equuleus)
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 |