qemu-iotests: Merge FilePaths and FilePath
commit3192fad7f789404dce6041d01400db3c16a0b5d1
authorNir Soffer <nirsof@gmail.com>
Fri, 28 Aug 2020 23:21:51 +0000 (29 02:21 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 15 Sep 2020 09:05:12 +0000 (15 11:05 +0200)
tree8d084a0ec912d9440b3a6e04e86b29d7442f3747
parenta242b19e80faa95fd5856fca2d4115e853d465b1
qemu-iotests: Merge FilePaths and FilePath

FilePath creates now one temporary file:

    with FilePath("a") as a:

Or more:

    with FilePath("a", "b", "c") as (a, b, c):

This is also the behavior of the file_path() helper, used by some of the
tests. Now we have only 2 helpers for creating temporary files instead
of 3.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200828232152.205833-5-nsoffer@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/194
tests/qemu-iotests/208
tests/qemu-iotests/222
tests/qemu-iotests/257
tests/qemu-iotests/iotests.py