File: skip-tests-that-cannot-run-on-riscv64.patch

package info (click to toggle)
python-podman 5.4.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,140 kB
  • sloc: python: 7,532; makefile: 82; sh: 75
file content (86 lines) | stat: -rw-r--r-- 3,053 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Forwarded: not-needed
--- a/podman/tests/integration/test_container_create.py
+++ b/podman/tests/integration/test_container_create.py
@@ -1,5 +1,6 @@
 import unittest
 
+import os
 import re
 
 import podman.tests.integration.base as base
@@ -107,6 +108,10 @@
 
     def _test_memory_limit(self, parameter_name, host_config_name, set_mem_limit=False):
         """Base for tests which checks memory limits"""
+
+        if os.uname().machine == 'riscv64':
+            self.skipTest('quay.io/libpod/alpine does not include riscv64.')
+
         memory_limit_tests = [
             {'value': 1000, 'expected_value': 1000},
             {'value': '1000', 'expected_value': 1000},
@@ -128,6 +133,7 @@
                 test['expected_value'],
             )
 
+    @unittest.skipIf(os.uname().machine == 'riscv64', 'quay.io/libpod/alpine does not include riscv64.')
     def test_container_ports(self):
         """Test ports binding"""
         port_tests = [
@@ -218,6 +224,7 @@
                 all([opt in b"\n".join(container.logs()).decode() for opt in expected_dns_opt])
             )
 
+    @unittest.skipIf(os.uname().machine == 'riscv64', 'quay.io/libpod/alpine does not include riscv64.')
     def test_container_healthchecks(self):
         """Test passing various healthcheck options"""
         parameters = {
--- a/podman/tests/integration/test_containers.py
+++ b/podman/tests/integration/test_containers.py
@@ -1,4 +1,5 @@
 import io
+import os
 import random
 import tarfile
 import unittest
@@ -216,6 +217,7 @@
             volume_list = self.client.volumes.list()
             self.assertEqual(len(volume_list), len(existing_volumes))
 
+    @unittest.skipIf(os.uname().machine == 'riscv64', 'quay.io/libpod/alpine does not include riscv64.')
     def test_container_labels(self):
         labels = {'label1': 'value1', 'label2': 'value2'}
         labeled_container = self.client.containers.create(self.alpine_image, labels=labels)
--- a/podman/tests/integration/test_images.py
+++ b/podman/tests/integration/test_images.py
@@ -15,6 +15,7 @@
 """Images integration tests."""
 
 import io
+import os
 import tarfile
 import types
 import unittest
@@ -37,6 +38,7 @@
         self.client = PodmanClient(base_url=self.socket_uri)
         self.addCleanup(self.client.close)
 
+    @unittest.skipIf(os.uname().machine == 'riscv64', 'quay.io/libpod/alpine does not include riscv64.')
     def test_image_crud(self):
         """Test Image CRUD.
 
--- a/podman/tests/integration/test_manifests.py
+++ b/podman/tests/integration/test_manifests.py
@@ -1,3 +1,4 @@
+import os
 import unittest
 from contextlib import suppress
 
@@ -69,6 +70,7 @@
             manifest.remove(self.alpine_image.attrs["RepoDigests"][0])
             self.assertEqual(manifest.attrs["manifests"], [])
 
+    @unittest.skipIf(os.uname().machine == 'riscv64', 'quay.io/libpod/alpine does not include riscv64.')
     def test_create_409(self):
         """Test that invalid Image names are caught and not corrupt storage."""
         with self.assertRaises(APIError):