From: Cleber Rosa <crosa@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Aleksandar Rikalo" <aleksandar.rikalo@syrmia.com>,
"Beraldo Leal" <bleal@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Cornelia Huck" <cohuck@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Willian Rampazzo" <willianr@redhat.com>,
"Auger Eric" <eric.auger@redhat.com>,
qemu-s390x@nongnu.org, "Willian Rampazzo" <wrampazz@redhat.com>,
"Cleber Rosa" <crosa@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Aurelien Jarno" <aurelien@aurel32.net>,
"Eduardo Habkost" <ehabkost@redhat.com>
Subject: [PATCH 6/8] Acceptance tests: prevent shutdown on non-specific target tests
Date: Thu, 15 Apr 2021 17:51:39 -0400 [thread overview]
Message-ID: <20210415215141.1865467-7-crosa@redhat.com> (raw)
In-Reply-To: <20210415215141.1865467-1-crosa@redhat.com>
When running tests that are not target specific with various target
binaries, some specific behavior appears. For s390x, when there's no
guest code running, it will produce GUEST_PANICKED events as the
firmware will shutdown the machine.
With this change, no GUEST_PANICKED *event* will be generated.
For some QMP commands, such as "query-migrate", a proper response
("guest-panicked" for the s390x target) will still be given.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
tests/acceptance/migration.py | 4 ++--
tests/acceptance/version.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py
index 25ee55f36a..b4d46becc6 100644
--- a/tests/acceptance/migration.py
+++ b/tests/acceptance/migration.py
@@ -46,12 +46,12 @@ def assert_migration(self, src_vm, dst_vm):
def do_migrate(self, dest_uri, src_uri=None):
dest_vm = self.get_vm('-incoming', dest_uri)
- dest_vm.add_args('-nodefaults')
+ dest_vm.add_args('-nodefaults', '-no-shutdown')
dest_vm.launch()
if src_uri is None:
src_uri = dest_uri
source_vm = self.get_vm()
- source_vm.add_args('-nodefaults')
+ source_vm.add_args('-nodefaults', '-no-shutdown')
source_vm.launch()
response = source_vm.qmp('migrate', uri=src_uri)
if 'error' in response:
diff --git a/tests/acceptance/version.py b/tests/acceptance/version.py
index 79b923d4fc..3cf18c9878 100644
--- a/tests/acceptance/version.py
+++ b/tests/acceptance/version.py
@@ -17,7 +17,7 @@ class Version(Test):
:avocado: tags=quick
"""
def test_qmp_human_info_version(self):
- self.vm.add_args('-nodefaults')
+ self.vm.add_args('-nodefaults', '-no-shutdown')
self.vm.launch()
res = self.vm.command('human-monitor-command',
command_line='info version')
--
2.25.4
next prev parent reply other threads:[~2021-04-15 21:57 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-15 21:51 [PATCH 0/8] Tests: introduce custom jobs Cleber Rosa
2021-04-15 21:51 ` [PATCH 1/8] Acceptance Jobs: preserve the cache for pip on GitLab CI Cleber Rosa
2021-04-16 3:56 ` Thomas Huth
2021-04-16 15:39 ` Cleber Rosa
2021-04-15 21:51 ` [PATCH 2/8] Acceptance tests: do not try to reuse packages from the system Cleber Rosa
2021-04-16 5:07 ` Philippe Mathieu-Daudé
2021-04-16 15:39 ` Willian Rampazzo
2021-04-19 18:14 ` Wainer dos Santos Moschetta
2021-04-15 21:51 ` [PATCH 3/8] tests/acceptance/linux_ssh_mips_malta.py: drop identical setUp Cleber Rosa
2021-04-16 5:26 ` Philippe Mathieu-Daudé
2021-04-16 15:43 ` Cleber Rosa
2021-04-16 17:46 ` Philippe Mathieu-Daudé
2021-04-19 18:25 ` Wainer dos Santos Moschetta
2021-04-16 15:46 ` Willian Rampazzo
2021-04-16 15:41 ` Willian Rampazzo
2021-04-15 21:51 ` [PATCH 4/8] tests/acceptance/migration.py: cancel test if migration is not supported Cleber Rosa
2021-04-16 5:11 ` Philippe Mathieu-Daudé
2021-04-16 16:14 ` Cleber Rosa
2021-04-16 15:50 ` Willian Rampazzo
2021-04-19 18:46 ` Wainer dos Santos Moschetta
2021-04-15 21:51 ` [PATCH 5/8] tests/acceptance/cpu_queries.py: use the proper logging channels Cleber Rosa
2021-04-16 5:15 ` Philippe Mathieu-Daudé
2021-04-16 15:54 ` Willian Rampazzo
2021-04-16 16:17 ` Cleber Rosa
2021-04-16 15:54 ` Willian Rampazzo
2021-04-19 18:56 ` Wainer dos Santos Moschetta
2021-04-15 21:51 ` Cleber Rosa [this message]
2021-04-16 15:56 ` [PATCH 6/8] Acceptance tests: prevent shutdown on non-specific target tests Willian Rampazzo
2021-04-19 19:07 ` Wainer dos Santos Moschetta
2021-04-15 21:51 ` [PATCH 7/8] tests/acceptance/migration.py: cancel test on s390x Cleber Rosa
2021-04-19 19:11 ` Wainer dos Santos Moschetta
2021-04-19 19:35 ` Willian Rampazzo
2021-04-15 21:51 ` [PATCH 8/8] Tests: add custom test jobs Cleber Rosa
2021-04-16 5:23 ` Philippe Mathieu-Daudé
2021-04-16 16:25 ` Cleber Rosa
2021-04-16 16:22 ` [PATCH 0/8] Tests: introduce custom jobs Paolo Bonzini
2021-04-16 16:42 ` Cleber Rosa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210415215141.1865467-7-crosa@redhat.com \
--to=crosa@redhat.com \
--cc=aleksandar.rikalo@syrmia.com \
--cc=alex.bennee@linaro.org \
--cc=aurelien@aurel32.net \
--cc=bleal@redhat.com \
--cc=cohuck@redhat.com \
--cc=ehabkost@redhat.com \
--cc=eric.auger@redhat.com \
--cc=f4bug@amsat.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=thuth@redhat.com \
--cc=wainersm@redhat.com \
--cc=willianr@redhat.com \
--cc=wrampazz@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).