Skip to content

Commit 40275f3

Browse files
authored
Skip dualstack test on ARM64 (#4153)
1 parent bd1dfea commit 40275f3

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

tests/test-cluster.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import string
22
import random
33
import time
4+
import platform
45
import pytest
56
import os
67
import datetime
@@ -609,6 +610,11 @@ def test_no_cert_reissue_in_nodes(self):
609610
not is_ipv6_configured,
610611
reason="Skipping dual stack tests on VMs which are not lxc based and not dual-stack enabled",
611612
)
613+
@pytest.mark.skipif(
614+
# We do not have IPv6 nginx image for ARM64
615+
platform.machine() != "x86_64",
616+
reason="Skipping dual stack tests on VMs which are not AMD64",
617+
)
612618
def test_dual_stack_cluster(self):
613619
vm = self.VM[0]
614620
# Deploy the test deployment and service

tests/test-upgrade.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ def test_upgrade(self):
132132
except CalledProcessError:
133133
print("Will not test the metallb addon")
134134

135-
if is_ipv6_configured:
136-
try:
137-
validate_dual_stack()
138-
test_matrix["dual_stack"] = validate_dual_stack
139-
except CalledProcessError:
140-
print("Will not test the dual stack configuration")
135+
if is_ipv6_configured:
136+
try:
137+
validate_dual_stack()
138+
test_matrix["dual_stack"] = validate_dual_stack
139+
except CalledProcessError:
140+
print("Will not test the dual stack configuration")
141141

142142
# Refresh the snap to the target
143143
if upgrade_to.endswith(".snap"):

0 commit comments

Comments
 (0)