@@ -21,7 +21,7 @@ def check_vm_dumpxml(vm, cores=None, sockets=None, threads=None):
2121
2222
2323@pytest .fixture ()
24- def vm_with_cpu_support (request , namespace , unprivileged_client ):
24+ def vm_with_cpu_support (request , is_s390x_cluster , namespace , unprivileged_client ):
2525 """
2626 VM with CPU support (cores,sockets,threads)
2727 """
@@ -31,7 +31,7 @@ def vm_with_cpu_support(request, namespace, unprivileged_client):
3131 namespace = namespace .name ,
3232 cpu_cores = request .param ["cores" ],
3333 cpu_sockets = request .param ["sockets" ],
34- cpu_threads = request .param ["threads" ],
34+ cpu_threads = 1 if is_s390x_cluster else request .param ["threads" ],
3535 cpu_max_sockets = request .param ["sockets" ] or 1 ,
3636 body = fedora_vm_body (name = name ),
3737 client = unprivileged_client ,
@@ -45,37 +45,28 @@ def vm_with_cpu_support(request, namespace, unprivileged_client):
4545 [
4646 pytest .param (
4747 {"sockets" : 2 , "cores" : 2 , "threads" : 2 },
48- marks = (pytest .mark .polarion ("CNV-2820" ), pytest .mark .gating , pytest .mark .conformance , pytest . mark . x86_64 () ),
48+ marks = (pytest .mark .polarion ("CNV-2820" ), pytest .mark .gating , pytest .mark .conformance ),
4949 id = "case1: 2 cores, 2 threads, 2 sockets" ,
5050 ),
5151 pytest .param (
5252 {"sockets" : None , "cores" : 1 , "threads" : 2 },
53- marks = (pytest .mark .polarion ("CNV-2823" ), pytest . mark . x86_64 () ),
53+ marks = (pytest .mark .polarion ("CNV-2823" )),
5454 id = "case2: 1 cores, 2 threads, no sockets" ,
5555 ),
56- pytest .param (
57- {"sockets" : 2 , "cores" : 2 , "threads" : 1 },
58- marks = (pytest .mark .gating (), pytest .mark .s390x ()),
59- id = "case1: 2 cores, 1 threads, 2 sockets" ,
60- ),
61- pytest .param (
62- {"sockets" : None , "cores" : 1 , "threads" : 1 },
63- marks = [pytest .mark .s390x ()],
64- id = "case2: 1 cores, 1 threads, no sockets" ,
65- ),
6656 pytest .param (
6757 {"sockets" : 2 , "cores" : 1 , "threads" : None },
68- marks = (pytest .mark .polarion ("CNV-2822" ), pytest . mark . x86_64 (), pytest . mark . s390x () ),
58+ marks = (pytest .mark .polarion ("CNV-2822" )),
6959 id = "case3: 1 cores, no threads, 2 sockets" ,
7060 ),
7161 pytest .param (
7262 {"sockets" : None , "cores" : 2 , "threads" : None },
73- marks = (pytest .mark .polarion ("CNV-2821" ), pytest . mark . x86_64 (), pytest . mark . s390x () ),
63+ marks = (pytest .mark .polarion ("CNV-2821" )),
7464 id = "case4: 2 cores, no threads, no sockets" ,
7565 ),
7666 ],
7767 indirect = True ,
7868)
69+ @pytest .mark .s390x
7970def test_vm_with_cpu_support (vm_with_cpu_support ):
8071 """
8172 Test VM with cpu support
@@ -107,7 +98,6 @@ def no_cpu_settings_vm(namespace, unprivileged_client):
10798
10899@pytest .mark .gating
109100@pytest .mark .conformance
110- @pytest .mark .x86_64
111101@pytest .mark .s390x
112102@pytest .mark .polarion ("CNV-1485" )
113103def test_vm_with_no_cpu_settings (no_cpu_settings_vm ):
@@ -120,7 +110,6 @@ def test_vm_with_no_cpu_settings(no_cpu_settings_vm):
120110
121111
122112@pytest .mark .gating
123- @pytest .mark .x86_64
124113@pytest .mark .s390x
125114@pytest .mark .polarion ("CNV-2818" )
126115def test_vm_with_cpu_limitation (namespace , unprivileged_client ):
@@ -144,7 +133,6 @@ def test_vm_with_cpu_limitation(namespace, unprivileged_client):
144133
145134
146135@pytest .mark .polarion ("CNV-2819" )
147- @pytest .mark .x86_64
148136@pytest .mark .s390x
149137def test_vm_with_cpu_limitation_negative (namespace , unprivileged_client ):
150138 """
0 commit comments