summaryrefslogtreecommitdiff
path: root/tests/integration_tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_tests/conftest.py')
-rw-r--r--tests/integration_tests/conftest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/integration_tests/conftest.py b/tests/integration_tests/conftest.py
index b2bc9eb7..a90a5d49 100644
--- a/tests/integration_tests/conftest.py
+++ b/tests/integration_tests/conftest.py
@@ -206,7 +206,11 @@ def _collect_logs(
os.symlink(log_dir.parent, last_symlink)
tarball_path = log_dir / "cloud-init.tar.gz"
- instance.pull_file("/var/tmp/cloud-init.tar.gz", tarball_path)
+ try:
+ instance.pull_file("/var/tmp/cloud-init.tar.gz", tarball_path)
+ except Exception as e:
+ log.error("Failed to pull logs: %s", e)
+ return
tarball = TarFile.open(str(tarball_path))
tarball.extractall(path=str(log_dir))