qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v4 13/15] target/avocado: Pass parameters to migration te


From: Richard Henderson
Subject: Re: [RFC PATCH v4 13/15] target/avocado: Pass parameters to migration test on aarch64
Date: Thu, 19 Jan 2023 09:29:21 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 1/19/23 03:54, Fabiano Rosas wrote:
The migration tests are currently broken for an aarch64 host because
the tests pass no 'machine' and 'cpu' options on the QEMU command
line. Most other architectures define a default value in QEMU for
these options, but arm does not.

Add these options to the test class in case the test is being executed
in an aarch64 host.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
Don't we want to run migration tests for all the built targets? A
cleaner approach would be to just subclass Migration for each
archictecture like in boot_linux.py.
---
  tests/avocado/migration.py | 11 ++++++++++-
  1 file changed, 10 insertions(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


@@ -62,7 +72,6 @@ def _get_free_port(self):
              self.cancel('Failed to find a free port')
          return port
-
      def test_migration_with_tcp_localhost(self):
          dest_uri = 'tcp:localhost:%u' % self._get_free_port()
          self.do_migrate(dest_uri)

Unrelated change. Also, I think there's some python style guide that suggests 2 lines between functions and classes.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]