aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/222
diff options
context:
space:
mode:
authorNir Soffer <nirsof@gmail.com>2020-08-29 02:21:51 +0300
committerMax Reitz <mreitz@redhat.com>2020-09-15 11:05:12 +0200
commit3192fad7f789404dce6041d01400db3c16a0b5d1 (patch)
tree8d084a0ec912d9440b3a6e04e86b29d7442f3747 /tests/qemu-iotests/222
parenta242b19e80faa95fd5856fca2d4115e853d465b1 (diff)
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>
Diffstat (limited to 'tests/qemu-iotests/222')
-rwxr-xr-xtests/qemu-iotests/2222
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/222 b/tests/qemu-iotests/222
index 6602f6b4ba..14d67c875b 100755
--- a/tests/qemu-iotests/222
+++ b/tests/qemu-iotests/222
@@ -49,7 +49,7 @@ remainder = [("0xd5", "0x108000", "32k"), # Right-end of partial-left [1]
with iotests.FilePath('base.img') as base_img_path, \
iotests.FilePath('fleece.img') as fleece_img_path, \
- iotests.FilePath('nbd.sock', iotests.sock_dir) as nbd_sock_path, \
+ iotests.FilePath('nbd.sock', base_dir=iotests.sock_dir) as nbd_sock_path, \
iotests.VM() as vm:
log('--- Setting up images ---')