Skip to content

Commit e4f15fc

Browse files
committed
TEST-58-REPART: make sector size test as a normal test case
1 parent c4d9f9c commit e4f15fc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

test/units/TEST-58-REPART.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,16 @@ EOF
13751375
assert_in "${loop}p3 : start= *${start}, size= *${size}, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=DB081670-07AE-48CA-9F5E-813D5E40B976, name=\"linux-generic-2\"" "$output"
13761376
}
13771377

1378+
testcase_sector() {
1379+
# Valid block sizes on the Linux block layer are >= 512 and <= PAGE_SIZE, and
1380+
# must be powers of 2. Which leaves exactly four different ones to test on
1381+
# typical hardware
1382+
test_sector 512
1383+
test_sector 1024
1384+
test_sector 2048
1385+
test_sector 4096
1386+
}
1387+
13781388
testcase_dropped_partitions() {
13791389
local workdir image defs
13801390

@@ -1627,12 +1637,4 @@ if ! systemd-detect-virt --container; then
16271637
run_testcases
16281638
fi
16291639

1630-
# Valid block sizes on the Linux block layer are >= 512 and <= PAGE_SIZE, and
1631-
# must be powers of 2. Which leaves exactly four different ones to test on
1632-
# typical hardware
1633-
test_sector 512
1634-
test_sector 1024
1635-
test_sector 2048
1636-
test_sector 4096
1637-
16381640
touch /testok

0 commit comments

Comments
 (0)