Skip to content

Commit 6caa2c0

Browse files
committed
Skip tests incompatible with host architecture
Don't run tests that run native amd64 binaries on hosts with other architectures. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
1 parent e0542d9 commit 6caa2c0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

tests/integration/api_plugin_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import platform
23

34
import pytest
45

@@ -11,6 +12,10 @@
1112

1213

1314
@requires_api_version('1.25')
15+
@pytest.mark.skipif(
16+
platform.machine().lower() not in ('amd64', 'x86_64'),
17+
reason='vieux/sshfs plugin is only supported on amd64',
18+
)
1419
class PluginTest(BaseAPIIntegrationTest):
1520
@classmethod
1621
def teardown_class(cls):

tests/integration/credentials/store_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import platform
23
import random
34
import shutil
45
import sys
@@ -13,7 +14,10 @@
1314
StoreError,
1415
)
1516

16-
17+
@pytest.mark.skipif(
18+
platform.machine().lower() not in ('amd64', 'x86_64'),
19+
reason='docker-credential-pass test helper is only supported on amd64',
20+
)
1721
class TestStore:
1822
def teardown_method(self):
1923
for server in self.tmp_keys:

0 commit comments

Comments
 (0)