summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-07 17:40:41 +0100
committerGitHub <noreply@github.com>2022-11-07 17:40:41 +0100
commitee19c5524a134787a9c8e909d25b6a9ca7923fdf (patch)
treedc576e7db4aa0b48cd5e95a96d98e0ceb5bd66ae /smoketest/scripts/cli
parente1d9982c7b463b173cc8c261f61a9447ace62898 (diff)
parentf9d19a14f96efc531595cea01601241dfff7473d (diff)
downloadvyos-1x-ee19c5524a134787a9c8e909d25b6a9ca7923fdf.tar.gz
vyos-1x-ee19c5524a134787a9c8e909d25b6a9ca7923fdf.zip
Merge pull request #1642 from sarthurdev/container_test
containers: T2216: Image download moved to smoketest package, skip test if image not available
Diffstat (limited to 'smoketest/scripts/cli')
-rwxr-xr-xsmoketest/scripts/cli/test_container.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_container.py b/smoketest/scripts/cli/test_container.py
index b9d308ae1..902156ee6 100755
--- a/smoketest/scripts/cli/test_container.py
+++ b/smoketest/scripts/cli/test_container.py
@@ -47,7 +47,10 @@ class TestContainer(VyOSUnitTestSHIM.TestCase):
super(TestContainer, cls).setUpClass()
# Load image for smoketest provided in vyos-build
- cmd(f'cat {busybox_image_path} | sudo podman load')
+ try:
+ cmd(f'cat {busybox_image_path} | sudo podman load')
+ except:
+ cls.skipTest(cls, reason='busybox image not available')
@classmethod
def tearDownClass(cls):