From 51244ac8935411afc1037abd916ac8826a88fb50 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Wed, 8 Apr 2026 10:32:26 -0400 Subject: [PATCH] tests: update to use _get_page_size to get PAGE_SIZE Signed-off-by: Yi Zhang --- tests/throtl/002 | 2 +- tests/throtl/003 | 2 +- tests/throtl/007 | 2 +- tests/zbd/014 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/throtl/002 b/tests/throtl/002 index 08e685f3..275c9001 100755 --- a/tests/throtl/002 +++ b/tests/throtl/002 @@ -21,7 +21,7 @@ test() { local io_size_kb block_size local iops=256 - page_size=$(getconf PAGE_SIZE) + page_size=$(_get_page_size) if ! _set_up_throtl --sector_size "${page_size}"; then return 1; diff --git a/tests/throtl/003 b/tests/throtl/003 index 700e9e6a..b45123a1 100755 --- a/tests/throtl/003 +++ b/tests/throtl/003 @@ -18,7 +18,7 @@ test() { echo "Running ${TEST_NAME}" local page_size - page_size=$(getconf PAGE_SIZE) + page_size=$(_get_page_size) if ! _set_up_throtl --sector_size "${page_size}"; then return 1; diff --git a/tests/throtl/007 b/tests/throtl/007 index 97dece6c..4292feba 100755 --- a/tests/throtl/007 +++ b/tests/throtl/007 @@ -19,7 +19,7 @@ test() { echo "Running ${TEST_NAME}" local page_size - page_size=$(getconf PAGE_SIZE) + page_size=$(_get_page_size) if ! _set_up_throtl --sector_size "${page_size}"; then return 1; diff --git a/tests/zbd/014 b/tests/zbd/014 index 35ecc851..2733a60d 100755 --- a/tests/zbd/014 +++ b/tests/zbd/014 @@ -112,7 +112,7 @@ run_test() { local bio_max_vecs=256 local page_size - page_size=$(getconf PAGE_SIZE) + page_size=$(_get_page_size) # In bytes. local max_inl_encr_bio_size=$((bio_max_vecs * page_size))