]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-iotests: require at least an argument to check-block.sh
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 Oct 2021 13:31:44 +0000 (15:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Jan 2022 10:13:33 +0000 (11:13 +0100)
This is anyway how check-block.sh is used in practice, and by removing the
list of formats in the script we avoid duplication between meson.build
and check-block.sh.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/check-block.sh

index 9afeea52757f0e65b00082725123dd415b0d0b3c..88e02453d294bd9e766204cd8ce4852e8cf6f535 100755 (executable)
@@ -1,21 +1,18 @@
 #!/bin/sh
 
+if [ "$#" -eq 0 ]; then
+    echo "Usage: $0 fmt..." >&2
+    exit 99
+fi
+
 # Honor the SPEED environment variable, just like we do it for "meson test"
-if [ "$SPEED" = "slow" ]; then
-    format_list="raw qcow2"
-    group=
-elif [ "$SPEED" = "thorough" ]; then
-    format_list="raw qcow2 qed vmdk vpc"
+format_list="$@"
+if [ "$SPEED" = "slow" ] || [ "$SPEED" = "thorough" ]; then
     group=
 else
-    format_list=qcow2
     group="-g auto"
 fi
 
-if [ "$#" -ne 0 ]; then
-    format_list="$@"
-fi
-
 skip() {
     echo "$*"
     exit 77