All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL 0/2] Python (acceptance tests) queue, 2019-09-19
@ 2019-09-19 16:26 Cleber Rosa
  2019-09-19 16:26 ` [PULL 1/2] tests/acceptance: Specify arch for QueryCPUModelExpansion Cleber Rosa
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Cleber Rosa @ 2019-09-19 16:26 UTC (permalink / raw)
  To: Eduardo Habkost, qemu-devel, Peter Maydell
  Cc: Fam Zheng, Aleksandar Rikalo, Philippe Mathieu-Daudé,
	Wainer dos Santos Moschetta, Willian Rampazzo, Cleber Rosa,
	Alex Bennée, Aurelien Jarno

The following changes since commit f8c3db33a5e863291182f8862ddf81618a7c6194:

  target/sparc: Switch to do_transaction_failed() hook (2019-09-17 12:01:00 +0100)

are available in the Git repository at:

  git://github.com/clebergnu/qemu.git tags/python-next-pull-request

for you to fetch changes up to 471c97a6938bda16f6e10e33437d96241482f580:

  BootLinuxSshTest: Only run the tests when explicitly requested (2019-09-19 09:53:39 -0400)

----------------------------------------------------------------

These are simple usability fixes for running acceptance tests on
non-x86 hosts, and were tested primarily on ppc64le.

----------------------------------------------------------------

David Gibson (1):
  tests/acceptance: Specify arch for QueryCPUModelExpansion

Philippe Mathieu-Daudé (1):
  BootLinuxSshTest: Only run the tests when explicitly requested

 tests/acceptance/cpu_queries.py          |  3 +++
 tests/acceptance/linux_ssh_mips_malta.py | 10 +++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

-- 
2.21.0



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PULL 1/2] tests/acceptance: Specify arch for QueryCPUModelExpansion
  2019-09-19 16:26 [PULL 0/2] Python (acceptance tests) queue, 2019-09-19 Cleber Rosa
@ 2019-09-19 16:26 ` Cleber Rosa
  2019-09-19 16:26 ` [PULL 2/2] BootLinuxSshTest: Only run the tests when explicitly requested Cleber Rosa
  2019-09-20 17:54 ` [PULL 0/2] Python (acceptance tests) queue, 2019-09-19 Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Cleber Rosa @ 2019-09-19 16:26 UTC (permalink / raw)
  To: Eduardo Habkost, qemu-devel, Peter Maydell
  Cc: Fam Zheng, Aleksandar Rikalo, Philippe Mathieu-Daudé,
	Wainer dos Santos Moschetta, Willian Rampazzo, Cleber Rosa,
	Alex Bennée, Aurelien Jarno, David Gibson

From: David Gibson <david@gibson.dropbear.id.au>

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.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20190918070654.19356-1-david@gibson.dropbear.id.au>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
 tests/acceptance/cpu_queries.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/acceptance/cpu_queries.py b/tests/acceptance/cpu_queries.py
index e71edec39f..af47d2795a 100644
--- a/tests/acceptance/cpu_queries.py
+++ b/tests/acceptance/cpu_queries.py
@@ -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()
-- 
2.21.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PULL 2/2] BootLinuxSshTest: Only run the tests when explicitly requested
  2019-09-19 16:26 [PULL 0/2] Python (acceptance tests) queue, 2019-09-19 Cleber Rosa
  2019-09-19 16:26 ` [PULL 1/2] tests/acceptance: Specify arch for QueryCPUModelExpansion Cleber Rosa
@ 2019-09-19 16:26 ` Cleber Rosa
  2019-09-20 17:54 ` [PULL 0/2] Python (acceptance tests) queue, 2019-09-19 Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Cleber Rosa @ 2019-09-19 16:26 UTC (permalink / raw)
  To: Eduardo Habkost, qemu-devel, Peter Maydell
  Cc: Fam Zheng, Aleksandar Rikalo, Philippe Mathieu-Daudé,
	Wainer dos Santos Moschetta, Gerd Hoffmann, Willian Rampazzo,
	Cleber Rosa, Alex Bennée, Aurelien Jarno, David Gibson

From: Philippe Mathieu-Daudé <philmd@redhat.com>

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.

Reported-by: Gerd Hoffmann <kraxel@redhat.com>
Reported-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20190918122748.2144-1-philmd@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
 tests/acceptance/linux_ssh_mips_malta.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/acceptance/linux_ssh_mips_malta.py b/tests/acceptance/linux_ssh_mips_malta.py
index 134f10cac3..7200507a3a 100644
--- a/tests/acceptance/linux_ssh_mips_malta.py
+++ b/tests/acceptance/linux_ssh_mips_malta.py
@@ -12,7 +12,7 @@ import logging
 import paramiko
 import time
 
-from avocado import skipIf
+from avocado import skipUnless
 from avocado_qemu import Test
 from avocado.utils import process
 from avocado.utils import archive
@@ -171,7 +171,7 @@ class LinuxSSH(Test):
         self.run_common_commands()
         self.shutdown_via_ssh()
 
-    @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
     def test_mips_malta32eb_kernel3_2_0(self):
         """
         :avocado: tags=arch:mips
@@ -186,7 +186,7 @@ class LinuxSSH(Test):
 
         self.check_mips_malta('be', kernel_path, 'mips')
 
-    @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
     def test_mips_malta32el_kernel3_2_0(self):
         """
         :avocado: tags=arch:mipsel
@@ -201,7 +201,7 @@ class LinuxSSH(Test):
 
         self.check_mips_malta('le', kernel_path, 'mips')
 
-    @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
     def test_mips_malta64eb_kernel3_2_0(self):
         """
         :avocado: tags=arch:mips64
@@ -215,7 +215,7 @@ class LinuxSSH(Test):
         kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
         self.check_mips_malta('be', kernel_path, 'mips64')
 
-    @skipIf(os.getenv('CONTINUOUS_INTEGRATION'), 'Running on Travis-CI')
+    @skipUnless(os.getenv('AVOCADO_TIMEOUT_EXPECTED'), 'Test might timeout')
     def test_mips_malta64el_kernel3_2_0(self):
         """
         :avocado: tags=arch:mips64el
-- 
2.21.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PULL 0/2] Python (acceptance tests) queue, 2019-09-19
  2019-09-19 16:26 [PULL 0/2] Python (acceptance tests) queue, 2019-09-19 Cleber Rosa
  2019-09-19 16:26 ` [PULL 1/2] tests/acceptance: Specify arch for QueryCPUModelExpansion Cleber Rosa
  2019-09-19 16:26 ` [PULL 2/2] BootLinuxSshTest: Only run the tests when explicitly requested Cleber Rosa
@ 2019-09-20 17:54 ` Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2019-09-20 17:54 UTC (permalink / raw)
  To: Cleber Rosa
  Cc: Fam Zheng, Eduardo Habkost, Aleksandar Rikalo,
	Philippe Mathieu-Daudé,
	QEMU Developers, Wainer dos Santos Moschetta, Willian Rampazzo,
	Alex Bennée, Aurelien Jarno

On Thu, 19 Sep 2019 at 17:27, Cleber Rosa <crosa@redhat.com> wrote:
>
> The following changes since commit f8c3db33a5e863291182f8862ddf81618a7c6194:
>
>   target/sparc: Switch to do_transaction_failed() hook (2019-09-17 12:01:00 +0100)
>
> are available in the Git repository at:
>
>   git://github.com/clebergnu/qemu.git tags/python-next-pull-request
>
> for you to fetch changes up to 471c97a6938bda16f6e10e33437d96241482f580:
>
>   BootLinuxSshTest: Only run the tests when explicitly requested (2019-09-19 09:53:39 -0400)
>
> ----------------------------------------------------------------
>
> These are simple usability fixes for running acceptance tests on
> non-x86 hosts, and were tested primarily on ppc64le.
>
> ----------------------------------------------------------------
>

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/4.2
for any user-visible changes.

-- PMM


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-20 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19 16:26 [PULL 0/2] Python (acceptance tests) queue, 2019-09-19 Cleber Rosa
2019-09-19 16:26 ` [PULL 1/2] tests/acceptance: Specify arch for QueryCPUModelExpansion Cleber Rosa
2019-09-19 16:26 ` [PULL 2/2] BootLinuxSshTest: Only run the tests when explicitly requested Cleber Rosa
2019-09-20 17:54 ` [PULL 0/2] Python (acceptance tests) queue, 2019-09-19 Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.