diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-11-04 10:52:43 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-11-07 15:37:54 +0100 |
commit | 81ca81d44d842ed5d22725774665324663e3aca7 (patch) | |
tree | c8ff379ee79bd4e06fcc9127cd968d647a38cd3d /smoketest | |
parent | 36e54927217d8e1560ddb7d4911542c53c42c71f (diff) | |
download | vyos-1x-81ca81d44d842ed5d22725774665324663e3aca7.tar.gz vyos-1x-81ca81d44d842ed5d22725774665324663e3aca7.zip |
containers: T2216: Skip test if image not available
Diffstat (limited to 'smoketest')
-rwxr-xr-x | smoketest/scripts/cli/test_container.py | 5 |
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): |