diff options
author | James Falcon <TheRealFalcon@users.noreply.github.com> | 2021-04-15 10:20:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 10:20:04 -0500 |
commit | 0d90596b56db5d306125ead08c571fc8d44d528e (patch) | |
tree | f534590462cce32dbdf8c292430b438f03f17be7 /tests/integration_tests/clouds.py | |
parent | cc16c9224681c9a60c2be5c52cff45aa17a8c010 (diff) | |
download | vyos-cloud-init-0d90596b56db5d306125ead08c571fc8d44d528e.tar.gz vyos-cloud-init-0d90596b56db5d306125ead08c571fc8d44d528e.zip |
Emit dots on travis to avoid timeout (#867)
The current method of running a background sleep until travis is
finished is causing integration test runs to pass even when they should
be failing.
Instead, update the code to emit dots itself.
Diffstat (limited to 'tests/integration_tests/clouds.py')
-rw-r--r-- | tests/integration_tests/clouds.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py index a6026309..11b57407 100644 --- a/tests/integration_tests/clouds.py +++ b/tests/integration_tests/clouds.py @@ -25,6 +25,7 @@ from tests.integration_tests.instances import ( IntegrationOciInstance, IntegrationLxdInstance, ) +from tests.integration_tests.util import emit_dots_on_travis try: from typing import Optional @@ -167,7 +168,8 @@ class IntegrationCloud(ABC): "\n".join("{}={}".format(*item) for item in kwargs.items()) ) - pycloudlib_instance = self._perform_launch(kwargs) + with emit_dots_on_travis(): + pycloudlib_instance = self._perform_launch(kwargs) log.info('Launched instance: %s', pycloudlib_instance) instance = self.get_instance(pycloudlib_instance, settings) if kwargs.get('wait', True): |