On 03/03/2026 14.43, Fabiano Rosas wrote:
Don't implement a custom migration routine at PpcMigrationTest and instead reuse the generic one from MigrationTest.This removes the dependency of PpcMigrationTest from PseriesMachine. Having one test import another causes unittest code to instantiate the imported test, resulting in the setup and teardown methods being invoked for the imported test class, even if no test from that class will be executed. If run in parallel, the extra setup/teardown methods that result from importing can race with the ones from the actual test being executed and cause the following error: File "<SRC_DIR>/tests/functional/qemu_test/testcase.py", line 238, in tearDown shutil.rmtree(self.workdir) ... FileNotFoundError: [Errno 2] No such file or directory: '<SRC_DIR>/build/tests/functional/ppc64/.../test_migration_with_exec/scratch' Fixes: f4e34d0fd5 ("tests/functional: Add a OS level migration test for pseries") Reported-by: Aditya Gupta <[email protected]> Signed-off-by: Fabiano Rosas <[email protected]> --- tests/functional/migration.py | 5 +++++ tests/functional/ppc64/test_migration.py | 11 ----------- tests/functional/ppc64/test_pseries.py | 4 ++-- 3 files changed, 7 insertions(+), 13 deletions(-)
Reviewed-by: Thomas Huth <[email protected]>
