Skip to contentSkip to conversation

tests/acceptance/virtio_check_params: Only disable the test on CI

PATCH In review Philippe Mathieu-Daudé 2 participants 2 messages Feb 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/acceptance/virtio_check_params: Only disable the test on CI

Commit 2d6a6e238a incorrectly totally disabled this test. The original intention was to only disable on continuous integration.

---
 tests/acceptance/virtio_check_params.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/acceptance/virtio_check_params.py +2 -2
index 87e6c839d1..015582cf9c 100644
@@ -25,7 +25,7 @@ import logging
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
 from qemu.machine import QEMUMachine
 from avocado_qemu import Test
-from avocado import skip
+from avocado import skipIf
 
 #list of machine types and virtqueue properties to test
 VIRTIO_SCSI_PROPS = {'seg_max_adjust': 'seg_max_adjust'}
@@ -117,7 +117,7 @@ class VirtioMaxSegSettingsCheck(Test):
             return True
         return False
 
-    @skip("break multi-arch CI")
+    @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Break multi-arch CI')
     def test_machine_types(self):
         # collect all machine types except 'none', 'isapc', 'microvm'
         with QEMUMachine(self.qemu_bin) as vm:
Signature · 1 line
2.21.1
Acked-by on v1 1/1
#1 lore raw
Quoted 22 lines · On Tue, 11 Feb 2020 11:49:38 +0100 Philippe Mathieu-Daudé <[email protected]>…

Commit 2d6a6e238a incorrectly totally disabled this test. The original intention was to only disable on continuous integration.

---
 tests/acceptance/virtio_check_params.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/acceptance/virtio_check_params.py +1 -1
index 87e6c839d1..015582cf9c 100644
@@ -25,7 +25,7 @@ import logging
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
 from qemu.machine import QEMUMachine
 from avocado_qemu import Test
-from avocado import skip
+from avocado import skipIf
 
 #list of machine types and virtqueue properties to test
 VIRTIO_SCSI_PROPS = {'seg_max_adjust': 'seg_max_adjust'}

tests/acceptance/virtio_check_params.py class VirtioMaxSegSettingsCheck(Test): · line 123

Quoted 8 lines
tests/acceptance/virtio_check_params.py +1 -1
@@ -117,7 +117,7 @@ class VirtioMaxSegSettingsCheck(Test):
             return True
         return False
 
-    @skip("break multi-arch CI")
+    @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Break multi-arch CI')
     def test_machine_types(self):
         # collect all machine types except 'none', 'isapc', 'microvm'
         with QEMUMachine(self.qemu_bin) as vm: