diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-12-03 17:12:33 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-12-04 09:58:52 +0100 |
commit | 92e43e5c5354d5c3ec39eef2dbb86e0cbfb354ce (patch) | |
tree | ae331093bd2a00bd0fb23f2bd4a92772dfe7cad8 /test | |
parent | mkosi/ci: use a bash array to pass options (diff) | |
download | systemd-92e43e5c5354d5c3ec39eef2dbb86e0cbfb354ce.tar.xz systemd-92e43e5c5354d5c3ec39eef2dbb86e0cbfb354ce.zip |
TEST-64: use more idiomatic loop syntax
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/TEST-64-UDEV-STORAGE.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/units/TEST-64-UDEV-STORAGE.sh b/test/units/TEST-64-UDEV-STORAGE.sh index 17f93dc4a1..24c1adaeda 100755 --- a/test/units/TEST-64-UDEV-STORAGE.sh +++ b/test/units/TEST-64-UDEV-STORAGE.sh @@ -177,7 +177,7 @@ testcase_nvme_basic() { local expected_symlinks=() local i - for (( i = 0; i < 5; i++ )); do + for i in {0..4}; do expected_symlinks+=( # both replace mode provides the same devlink /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_deadbeef"$i" @@ -185,7 +185,7 @@ testcase_nvme_basic() { /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_deadbeef"$i"_1 ) done - for (( i = 5; i < 10; i++ )); do + for i in {5..9}; do expected_symlinks+=( # old replace mode /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl__deadbeef_"$i" @@ -195,7 +195,7 @@ testcase_nvme_basic() { /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_____deadbeef__"$i"_1 ) done - for (( i = 10; i < 15; i++ )); do + for i in {10..14}; do expected_symlinks+=( # old replace mode does not provide devlink, as serial contains "/" # newer replace mode @@ -204,7 +204,7 @@ testcase_nvme_basic() { /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_____dead_beef_"$i"_1 ) done - for (( i = 15; i < 20; i++ )); do + for i in {15..19}; do expected_symlinks+=( # old replace mode does not provide devlink, as serial contains "/" # newer replace mode |