Skip to contentSkip to conversation

tests/acceptance: Specify arch for QueryCPUModelExpansion

PATCH RESEND In review David Gibson 3 participants 3 messages Sep 18, 2019 – Sep 19, 2019

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 tests/acceptance: Specify arch for QueryCPUModelExpansion

At the moment this test runs on whatever the host arch is. But it looks for 'unavailable-features' which is an x86 specific cpu property. Tag it to always use qemu-system-x86_64.

---
 tests/acceptance/cpu_queries.py | 3 +++
 1 file changed, 3 insertions(+)

I sent this a while back, but it seems to have been forgotten. As far as I can tell the current logic is Just Plain Wrong, on any host other than x86.

tests/acceptance/cpu_queries.py +3 -0
index e71edec39f..af47d2795a 100644
@@ -18,6 +18,9 @@ class QueryCPUModelExpansion(Test):
     """
 
     def test(self):
+        """
+        :avocado: tags=arch:x86_64
+        """
         self.vm.set_machine('none')
         self.vm.add_args('-S')
         self.vm.launch()
Signature · 1 line
2.21.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · David Gibson

At the moment this test runs on whatever the host arch is. But it looks for 'unavailable-features' which is an x86 specific cpu property. Tag it to always use qemu-system-x86_64.

---
 tests/acceptance/cpu_queries.py | 3 +++
 1 file changed, 3 insertions(+)

I sent this a while back, but it seems to have been forgotten. As far as I can tell the current logic is Just Plain Wrong, on any host other than x86.

tests/acceptance/cpu_queries.py +0 -0
index e71edec39f..af47d2795a 100644

tests/acceptance/cpu_queries.py class QueryCPUModelExpansion(Test): · line 26

Quoted 9 lines
tests/acceptance/cpu_queries.py +3 -0
@@ -18,6 +18,9 @@ class QueryCPUModelExpansion(Test):
     """
 
     def test(self):
+        """
+        :avocado: tags=arch:x86_64
+        """
         self.vm.set_machine('none')
         self.vm.add_args('-S')
         self.vm.launch()
Reviewed-by on v1 1/1
#2 lore raw
In reply to David Gibson
Quoted 31 lines · David Gibson

At the moment this test runs on whatever the host arch is. But it looks for 'unavailable-features' which is an x86 specific cpu property. Tag it to always use qemu-system-x86_64.

---
 tests/acceptance/cpu_queries.py | 3 +++
 1 file changed, 3 insertions(+)

I sent this a while back, but it seems to have been forgotten. As far as I can tell the current logic is Just Plain Wrong, on any host other than x86.

tests/acceptance/cpu_queries.py +3 -0
index e71edec39f..af47d2795a 100644
@@ -18,6 +18,9 @@ class QueryCPUModelExpansion(Test):
     """
 
     def test(self):
+        """
+        :avocado: tags=arch:x86_64
+        """
         self.vm.set_machine('none')
         self.vm.add_args('-S')
         self.vm.launch()
Signature · 1 line
2.21.0

I've queued on my python-next branch.