diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-15 11:13:29 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-19 06:08:58 +0900 |
commit | d64b44be527fd852a245ebff2c7d16cb27da7423 (patch) | |
tree | 706f0155f52d4057e3a1c35bc3b77c06a0478d55 /test/TEST-64-UDEV-STORAGE | |
parent | 5b4671ec47ac727f73404ea7c805fd1a730b6aeb (diff) | |
download | systemd-d64b44be527fd852a245ebff2c7d16cb27da7423.tar.gz |
test: add testcase for link priority
Diffstat (limited to 'test/TEST-64-UDEV-STORAGE')
-rwxr-xr-x | test/TEST-64-UDEV-STORAGE/test.sh | 18 |
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() { |