summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-02-14 23:21:12 +0000
committerGitHub <noreply@github.com>2023-02-14 23:21:12 +0000
commitbf99fd11225413565ff04d95df441247ac4a02df (patch)
treed4c6d26dc44c176fdb7a2baf720743e686ac9d4b
parent9538a74382ffc7d27bd64baa4ccad7eb090c08cb (diff)
parente70abc2ea84284a4fd6c849c79d719d0da2d9dbc (diff)
downloadvyos-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)
-rwxr-xr-xsmoketest/scripts/cli/test_service_tftp-server.py9
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