summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-12-03 17:12:33 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-12-04 09:58:52 +0100
commit92e43e5c5354d5c3ec39eef2dbb86e0cbfb354ce (patch)
treeae331093bd2a00bd0fb23f2bd4a92772dfe7cad8 /test
parentmkosi/ci: use a bash array to pass options (diff)
downloadsystemd-92e43e5c5354d5c3ec39eef2dbb86e0cbfb354ce.tar.xz
systemd-92e43e5c5354d5c3ec39eef2dbb86e0cbfb354ce.zip
TEST-64: use more idiomatic loop syntax
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/TEST-64-UDEV-STORAGE.sh8
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