summaryrefslogtreecommitdiff
path: root/test/TEST-64-UDEV-STORAGE
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-15 11:13:29 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-19 06:08:58 +0900
commitd64b44be527fd852a245ebff2c7d16cb27da7423 (patch)
tree706f0155f52d4057e3a1c35bc3b77c06a0478d55 /test/TEST-64-UDEV-STORAGE
parent5b4671ec47ac727f73404ea7c805fd1a730b6aeb (diff)
downloadsystemd-d64b44be527fd852a245ebff2c7d16cb27da7423.tar.gz
test: add testcase for link priority
Diffstat (limited to 'test/TEST-64-UDEV-STORAGE')
-rwxr-xr-xtest/TEST-64-UDEV-STORAGE/test.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/test/TEST-64-UDEV-STORAGE/test.sh b/test/TEST-64-UDEV-STORAGE/test.sh
index 6eed43cc25..26d7294498 100755
--- a/test/TEST-64-UDEV-STORAGE/test.sh
+++ b/test/TEST-64-UDEV-STORAGE/test.sh
@@ -312,19 +312,23 @@ EOF
# Test case for issue https://github.com/systemd/systemd/issues/19946
testcase_simultaneous_events() {
local qemu_opts=("-device virtio-scsi-pci,id=scsi")
- local partdisk="${TESTDIR:?}/simultaneousevents.img"
+ local diskpath i
- dd if=/dev/zero of="$partdisk" bs=1M count=110
- qemu_opts+=(
- "-device scsi-hd,drive=drive1,serial=deadbeeftest"
- "-drive format=raw,cache=unsafe,file=$partdisk,if=none,id=drive1"
- )
+ for i in {0..9}; do
+ diskpath="${TESTDIR:?}/simultaneousevents${i}.img"
+
+ dd if=/dev/zero of="$diskpath" bs=1M count=32
+ qemu_opts+=(
+ "-device scsi-hd,drive=drive$i,serial=deadbeeftest$i"
+ "-drive format=raw,cache=unsafe,file=$diskpath,if=none,id=drive$i"
+ )
+ done
KERNEL_APPEND="systemd.setenv=TEST_FUNCTION_NAME=${FUNCNAME[0]} ${USER_KERNEL_APPEND:-}"
QEMU_OPTIONS="${qemu_opts[*]} ${USER_QEMU_OPTIONS:-}"
test_run_one "${1:?}" || return $?
- rm -f "$partdisk"
+ rm -f "$diskpath"
}
testcase_lvm_basic() {