iotests: Allow check -o data_file
commit1b35b85abb93aa6d40ac237e8be3ae87a20a8d0b
authorMax Reitz <mreitz@redhat.com>
Thu, 7 Nov 2019 16:37:08 +0000 (7 17:37 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 6 Jan 2020 12:43:07 +0000 (6 13:43 +0100)
tree8903b3ac6b8cced400f3e54e97bc36338f49e134
parent3be2024aefe0024ada2fb5044c230c867ef59c67
iotests: Allow check -o data_file

The problem with allowing the data_file option is that you want to use a
different data file per image used in the test.  Therefore, we need to
allow patterns like -o data_file='$TEST_IMG.data_file'.

Then, we need to filter it out from qemu-img map, qemu-img create, and
remove the data file in _rm_test_img.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-id: 20191107163708.833192-23-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/common.filter
tests/qemu-iotests/common.rc