All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabiano Rosas <farosas@suse.de>
To: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Cc: adityag@linux.ibm.com, berrange@redhat.com, peterx@redhat.com,
	Nicholas Piggin <npiggin@gmail.com>,
	Harsh Prateek Bora <harshpb@linux.ibm.com>
Subject: Re: [PATCH v3 4/5] tests/functional/ppc64/pseries: Inherit from MigrationTest
Date: Tue, 03 Mar 2026 12:46:43 -0300	[thread overview]
Message-ID: <878qc83ogs.fsf@suse.de> (raw)
In-Reply-To: <fdac5b26-e8ac-4535-ad3e-8b158b3c051b@redhat.com>

Thomas Huth <thuth@redhat.com> writes:

> On 03/03/2026 14.43, Fabiano Rosas wrote:
>> Make the PseriesMachine class inherit from MigrationTest so the next
>> patch can access migration routines without needing to instantiate a
>> MigrationTest object. This is just for cleanliness of the code.
>> 
>> Note that creating a separate class for migration wouldn't work quite
>> well because the class attributes of PseriesMachine would then have to
>> be exposed to that class somehow.
>> 
>> Suggested-by: Peter Xu <peterx@redhat.com>
>> Signed-off-by: Fabiano Rosas <farosas@suse.de>
>> ---
>>   tests/functional/ppc64/test_pseries.py | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>> 
>> diff --git a/tests/functional/ppc64/test_pseries.py b/tests/functional/ppc64/test_pseries.py
>> index b45763c305..ce39e16a22 100755
>> --- a/tests/functional/ppc64/test_pseries.py
>> +++ b/tests/functional/ppc64/test_pseries.py
>> @@ -11,7 +11,7 @@
>>   from qemu_test import wait_for_console_pattern
>>   from test_migration import PpcMigrationTest
>>   
>> -class PseriesMachine(QemuSystemTest):
>> +class PseriesMachine(MigrationTest):
>
> This patch does not work (without the following one). You only import 
> PpcMigrationTest, but not MigrationTest, so inheriting from MigrationTest is 
> not possible here...
>

Ouch, sorry. I'll repost.


  reply	other threads:[~2026-03-03 15:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-03 13:43 [PATCH v3 0/5] tests/functional: Fix ppc64 issue with make -j Fabiano Rosas
2026-03-03 13:43 ` [PATCH v3 1/5] tests/functional/migration: Use socket_dir Fabiano Rosas
2026-03-03 13:43 ` [PATCH v3 2/5] tests/functional/migration: Add migrate_vms Fabiano Rosas
2026-03-03 14:14   ` Thomas Huth
2026-03-03 13:43 ` [PATCH v3 3/5] tests/functional/migration: Use the migrate_vms helper Fabiano Rosas
2026-03-03 14:20   ` Thomas Huth
2026-03-03 13:43 ` [PATCH v3 4/5] tests/functional/ppc64/pseries: Inherit from MigrationTest Fabiano Rosas
2026-03-03 14:38   ` Thomas Huth
2026-03-03 15:46     ` Fabiano Rosas [this message]
2026-03-03 13:43 ` [PATCH v3 5/5] tests/functional/ppc64/pseries: Remove custom migration routine Fabiano Rosas
2026-03-03 14:40   ` Thomas Huth

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=878qc83ogs.fsf@suse.de \
    --to=farosas@suse.de \
    --cc=adityag@linux.ibm.com \
    --cc=berrange@redhat.com \
    --cc=harshpb@linux.ibm.com \
    --cc=npiggin@gmail.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@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 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.