mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-08-10 03:24:00 +00:00
tests: Use get_filesize rather than plain stat
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
895df2c36e
commit
bf0503352d
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user