Skip to contentSkip to conversation

tests/acceptance/ppc_prep_40p: Do not run NetBSD test by default

PATCH In review Philippe Mathieu-Daudé 3 participants 3 messages Feb 11, 2020 – Feb 13, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/acceptance/ppc_prep_40p: Do not run NetBSD test by default

The ftp.netbsd.org server is slow and downloading the NetBSD ISO 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.

---
 tests/acceptance/ppc_prep_40p.py | 1 +
 1 file changed, 1 insertion(+)
tests/acceptance/ppc_prep_40p.py +1 -0
index b27572f212..efe06037ba 100644
@@ -61,6 +61,7 @@ def test_openbios_192m(self):
         wait_for_console_pattern(self, '>> CPU type PowerPC,604')
 
     @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
     def test_openbios_and_netbsd(self):
         """
         :avocado: tags=arch:ppc
Signature · 1 line
2.21.1
#1 lore raw

Please use cdn.netbsd.org always.

Quoted 34 lines · Philippe Mathieu-Daudé

The ftp.netbsd.org server is slow and downloading the NetBSD ISO 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.

---
 tests/acceptance/ppc_prep_40p.py | 1 +
 1 file changed, 1 insertion(+)
tests/acceptance/ppc_prep_40p.py +1 -0
index b27572f212..efe06037ba 100644
@@ -61,6 +61,7 @@ def test_openbios_192m(self):
         wait_for_console_pattern(self, '>> CPU type PowerPC,604')
 
     @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
     def test_openbios_and_netbsd(self):
         """
         :avocado: tags=arch:ppc
Reviewed-by on v1 1/1
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 12 lines · Philippe Mathieu-Daudé

The ftp.netbsd.org server is slow and downloading the NetBSD ISO 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.

Quoted 8 lines

Tests can still be run setting the AVOCADO_TIMEOUT_EXPECTED environment variable.

---
  tests/acceptance/ppc_prep_40p.py | 1 +
  1 file changed, 1 insertion(+)

LGTM.

Quoted 13 lines
tests/acceptance/ppc_prep_40p.py +1 -0
index b27572f212..efe06037ba 100644
@@ -61,6 +61,7 @@ def test_openbios_192m(self):
          wait_for_console_pattern(self, '>> CPU type PowerPC,604')
 
      @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
      def test_openbios_and_netbsd(self):
          """
          :avocado: tags=arch:ppc