Skip to content

Commit e08da69

Browse files
committed
skip tests when the test image is not available (e.g. 32-bit)
Signed-off-by: Hans-Christoph Steiner <[email protected]>
1 parent 5dacf8b commit e08da69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

podman/tests/integration/test_images.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""Images integration tests."""
1616

1717
import io
18+
import platform
1819
import tarfile
1920
import types
2021
import unittest
@@ -143,10 +144,12 @@ def test_build(self):
143144
self.assertIsNotNone(image)
144145
self.assertIsNotNone(image.id)
145146

147+
@unittest.skipIf(platform.architecture()[0] == "32bit", "no 32-bit image available")
146148
def test_pull_stream(self):
147149
generator = self.client.images.pull("ubi8", tag="latest", stream=True)
148150
self.assertIsInstance(generator, types.GeneratorType)
149151

152+
@unittest.skipIf(platform.architecture()[0] == "32bit", "no 32-bit image available")
150153
def test_pull_stream_decode(self):
151154
generator = self.client.images.pull("ubi8", tag="latest", stream=True, decode=True)
152155
self.assertIsInstance(generator, types.GeneratorType)

0 commit comments

Comments
 (0)