From: Daniel P. Berrangé Date: Tue, 17 Dec 2024 15:59:36 +0000 (+0000) Subject: tests/functional: remove redundant 'rmtree' call X-Git-Tag: v10.0.0-rc0~114^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7788cc7c5a2395707082952bebfcdae1e2be8ca1;p=thirdparty%2Fqemu.git tests/functional: remove redundant 'rmtree' call Everything in the scratch directory is automatically purged. Calling 'rmtree' again breaks the ability to optionally preserve the scratch directory contents. Reviewed-by: Thomas Huth Signed-off-by: Daniel P. Berrangé Message-ID: <20241217155953.3950506-16-berrange@redhat.com> Signed-off-by: Thomas Huth --- diff --git a/tests/functional/test_sh4eb_r2d.py b/tests/functional/test_sh4eb_r2d.py index b8dadabf3c1..c8954c93ebc 100755 --- a/tests/functional/test_sh4eb_r2d.py +++ b/tests/functional/test_sh4eb_r2d.py @@ -4,8 +4,6 @@ # # SPDX-License-Identifier: GPL-2.0-or-later -import shutil - from qemu_test import LinuxKernelTest, Asset from qemu_test import exec_command_and_wait_for_pattern from qemu_test.utils import archive_extract @@ -26,7 +24,6 @@ class R2dEBTest(LinuxKernelTest): 'initramfs.cpio.gz'), console_index=1, wait_for='Type exit when done') exec_command_and_wait_for_pattern(self, 'exit', 'Restarting system') - shutil.rmtree(self.scratch_file('sh4eb')) if __name__ == '__main__': LinuxKernelTest.main()