Skip to contentSkip to conversation

tests/acceptance/machine_sparc_leon3: Do not run HelenOS test by default

PATCH In review Philippe Mathieu-Daudé 3 participants 4 messages Feb 12, 2020 – Mar 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tests/acceptance/machine_sparc_leon3: Do not run HelenOS test by default

The www.helenos.org server is slow and downloading the Leon3 binary takes too long [*]. Do not include this test in the default suite.

Similarly to commit 471c97a69b:

Currently the Avocado framework does not distinct the time spent downloading assets vs. the time spent running a test. With big assets (like a full VM image) the tests likely fail.

This is a limitation known by the Avocado team.
Until this issue get fixed, do not run this tests automatically.

Tests can still be run setting the AVOCADO_TIMEOUT_EXPECTED environment variable.

[*] https://travis-ci.org/stsquad/qemu/jobs/649599880#L4198

---
v2: Add missing staged hunk...

---
 tests/acceptance/machine_sparc_leon3.py | 4 ++++
 1 file changed, 4 insertions(+)
tests/acceptance/machine_sparc_leon3.py +4 -0
index f77e210ccb..27e4717a51 100644
@@ -5,6 +5,9 @@
 # This work is licensed under the terms of the GNU GPL, version 2 or
 # later. See the COPYING file in the top-level directory.
 
+import os
+
+from avocado import skipUnless
 from avocado_qemu import Test
 from avocado_qemu import wait_for_console_pattern
 
@@ -13,6 +16,7 @@ class Leon3Machine(Test):
 
     timeout = 60
 
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
     def test_leon3_helenos_uimage(self):
         """
         :avocado: tags=arch:sparc
Signature · 1 line
2.21.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 17 lines · Philippe Mathieu-Daudé

The www.helenos.org server is slow and downloading the Leon3 binary takes too long [*]. Do not include this test in the default suite.

Similarly to commit 471c97a69b:

Currently the Avocado framework does not distinct the time spent downloading assets vs. the time spent running a test. With big assets (like a full VM image) the tests likely fail.

This is a limitation known by the Avocado team.
Until this issue get fixed, do not run this tests automatically.

Tests can still be run setting the AVOCADO_TIMEOUT_EXPECTED environment variable.

[*] https://travis-ci.org/stsquad/qemu/jobs/649599880#L4198

Quoted 7 lines

---
v2: Add missing staged hunk...

---
  tests/acceptance/machine_sparc_leon3.py | 4 ++++
  1 file changed, 4 insertions(+)

LGTM.

Quoted 23 lines
tests/acceptance/machine_sparc_leon3.py +4 -0
index f77e210ccb..27e4717a51 100644
@@ -5,6 +5,9 @@
  # This work is licensed under the terms of the GNU GPL, version 2 or
  # later. See the COPYING file in the top-level directory.
 
+import os
+
+from avocado import skipUnless
  from avocado_qemu import Test
  from avocado_qemu import wait_for_console_pattern
 
@@ -13,6 +16,7 @@ class Leon3Machine(Test):
 
      timeout = 60
 
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
      def test_leon3_helenos_uimage(self):
          """
          :avocado: tags=arch:sparc
Reviewed-by on v2 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé

Le 2/12/20 à 9:36 PM, Philippe Mathieu-Daudé a écrit :

Quoted 41 lines

The www.helenos.org server is slow and downloading the Leon3 binary takes too long [*]. Do not include this test in the default suite.

Similarly to commit 471c97a69b:

Currently the Avocado framework does not distinct the time spent downloading assets vs. the time spent running a test. With big assets (like a full VM image) the tests likely fail.

This is a limitation known by the Avocado team.
Until this issue get fixed, do not run this tests automatically.

Tests can still be run setting the AVOCADO_TIMEOUT_EXPECTED environment variable.

[*] https://travis-ci.org/stsquad/qemu/jobs/649599880#L4198

---
v2: Add missing staged hunk...

---
  tests/acceptance/machine_sparc_leon3.py | 4 ++++
  1 file changed, 4 insertions(+)
tests/acceptance/machine_sparc_leon3.py +3 -0
index f77e210ccb..27e4717a51 100644
@@ -5,6 +5,9 @@
  # This work is licensed under the terms of the GNU GPL, version 2 or
  # later. See the COPYING file in the top-level directory.
 
+import os
+
+from avocado import skipUnless
  from avocado_qemu import Test
  from avocado_qemu import wait_for_console_pattern
 

tests/acceptance/machine_sparc_leon3.py class Leon3Machine(Test): · line 22

Quoted 7 lines
tests/acceptance/machine_sparc_leon3.py +1 -0
@@ -13,6 +16,7 @@ class Leon3Machine(Test):
 
      timeout = 60
 
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
      def test_leon3_helenos_uimage(self):
          """
          :avocado: tags=arch:sparc

Thanks Philippe!

#3 lore raw
In reply to Philippe Mathieu-Daudé

I just noticed I forgot to Cc Eduardo when posting this :S

Eduardo, do you want me to prepare a pullreq for rc1 with this patch and Oksana other fix?

Quoted 48 lines · Philippe Mathieu-Daudé

The www.helenos.org server is slow and downloading the Leon3 binary takes too long [*]. Do not include this test in the default suite.

Similarly to commit 471c97a69b:

Currently the Avocado framework does not distinct the time spent downloading assets vs. the time spent running a test. With big assets (like a full VM image) the tests likely fail.

This is a limitation known by the Avocado team.
Until this issue get fixed, do not run this tests automatically.

Tests can still be run setting the AVOCADO_TIMEOUT_EXPECTED environment variable.

[*] https://travis-ci.org/stsquad/qemu/jobs/649599880#L4198

---
v2: Add missing staged hunk...

---
  tests/acceptance/machine_sparc_leon3.py | 4 ++++
  1 file changed, 4 insertions(+)
tests/acceptance/machine_sparc_leon3.py +4 -0
index f77e210ccb..27e4717a51 100644
@@ -5,6 +5,9 @@
  # This work is licensed under the terms of the GNU GPL, version 2 or
  # later. See the COPYING file in the top-level directory.
 
+import os
+
+from avocado import skipUnless
  from avocado_qemu import Test
  from avocado_qemu import wait_for_console_pattern
 
@@ -13,6 +16,7 @@ class Leon3Machine(Test):
 
      timeout = 60
 
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
      def test_leon3_helenos_uimage(self):
          """
          :avocado: tags=arch:sparc