mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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 <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20241217155953.3950506-16-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
beaf88c895
commit
7788cc7c5a
1 changed files with 0 additions and 3 deletions
|
@ -4,8 +4,6 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
import shutil
|
|
||||||
|
|
||||||
from qemu_test import LinuxKernelTest, Asset
|
from qemu_test import LinuxKernelTest, Asset
|
||||||
from qemu_test import exec_command_and_wait_for_pattern
|
from qemu_test import exec_command_and_wait_for_pattern
|
||||||
from qemu_test.utils import archive_extract
|
from qemu_test.utils import archive_extract
|
||||||
|
@ -26,7 +24,6 @@ class R2dEBTest(LinuxKernelTest):
|
||||||
'initramfs.cpio.gz'),
|
'initramfs.cpio.gz'),
|
||||||
console_index=1, wait_for='Type exit when done')
|
console_index=1, wait_for='Type exit when done')
|
||||||
exec_command_and_wait_for_pattern(self, 'exit', 'Restarting system')
|
exec_command_and_wait_for_pattern(self, 'exit', 'Restarting system')
|
||||||
shutil.rmtree(self.scratch_file('sh4eb'))
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
LinuxKernelTest.main()
|
LinuxKernelTest.main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue