tests/qemu-iotests: Restrict test 114 to the 'file' protocol
authorThomas Huth <thuth@redhat.com>
Fri, 15 Mar 2024 11:11:02 +0000 (12:11 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Mar 2024 12:31:54 +0000 (13:31 +0100)
iotest 114 uses "truncate" and the qcow2.py script on the destination file,
which both cannot deal with URIs. Thus this test needs the "file" protocol,
otherwise it fails with an error message like this:

 truncate: cannot open 'ssh://127.0.0.1/tmp/qemu-build/tests/qemu-iotests/scratch/qcow2-ssh-114/t.qcow2.orig'
  for writing: No such file or directory

Thus mark this test for "file protocol only" accordingly.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240315111108.153201-4-thuth@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/114

index de6fd327eea9e2ef5d21fc6fbf0b9fcfaaf26114..dccc71008b560e88ca5deeedfd28e3fea537a0fb 100755 (executable)
@@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 . ./common.filter
 
 _supported_fmt qcow2
-_supported_proto generic
+_supported_proto file
 # At least OpenBSD doesn't seem to have truncate
 _supported_os Linux
 # qcow2.py does not work too well with external data files