OSDN Git Service

qemu-iotests: Fix FilePaths cleanup
authorNir Soffer <nirsof@gmail.com>
Fri, 28 Aug 2020 23:21:48 +0000 (02:21 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 15 Sep 2020 09:05:12 +0000 (11:05 +0200)
commita7971702f473d0461b527bfda476d164d3f2feff
treecfb00cf7dc8c8a8559193c78f70be36dc6482d8c
parent2d2c73d0e3d504a61f868e46e6abd5643f38091b
qemu-iotests: Fix FilePaths cleanup

If os.remove() fails to remove one of the paths, for example if the file
was removed by the test, the cleanup loop would exit silently, without
removing the rest of the files.

Fixes: de263986b5dc
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200828232152.205833-2-nsoffer@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/iotests.py