tests: Use get_filesize rather than plain stat

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2026-05-20 09:54:23 -04:00 committed by Stefan Berger
parent 895df2c36e
commit bf0503352d
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ function check_cert_size()
local size
size=$(stat -c%s "${cert}" 2>/dev/null)
size=$(get_filesize "${cert}")
if [ "$size" -ne "$exp" ]; then
echo "Warning: Certificate file has unexpected size."
echo " Expected: $exp; found: $size"

View File

@ -24,7 +24,7 @@ function check_cert_size()
local size
size=$(stat -c%s "${cert}" 2>/dev/null)
size=$(get_filesize "${cert}")
if [ "$size" -ne "$exp" ]; then
echo "Warning: Certificate file has unexpected size."
echo " Expected: $exp; found: $size"

View File

@ -24,7 +24,7 @@ function check_cert_size()
local size
size=$(stat -c%s "${cert}" 2>/dev/null)
size=$(get_filesize "${cert}")
if [ "$size" -ne "$exp" ]; then
echo "Warning: Certificate file has unexpected size."
echo " Expected: $exp; found: $size"