mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-01 04:45:32 +00:00
tests: Fix outdated output of expected file size in case of error
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
c6c8f63686
commit
4e5dffc08a
@ -24,9 +24,10 @@ rc=$?
|
||||
|
||||
fs=$(get_filesize NVChip)
|
||||
[ $? -ne 0 ] && exit 1
|
||||
if [ $fs -ne 176832 ]; then
|
||||
exp=176832
|
||||
if [ $fs -ne $exp ]; then
|
||||
echo "Error: Unexpected size of NVChip file."
|
||||
echo "Expected: 131072"
|
||||
echo "Expected: $exp"
|
||||
echo "Got : $fs"
|
||||
rc=1
|
||||
fi
|
||||
|
||||
@ -24,9 +24,10 @@ rc=$?
|
||||
|
||||
fs=$(get_filesize NVChip)
|
||||
[ $? -ne 0 ] && exit 1
|
||||
if [ $fs -ne 176832 ]; then
|
||||
exp=176832
|
||||
if [ $fs -ne $exp ]; then
|
||||
echo "Error: Unexpected size of NVChip file."
|
||||
echo "Expected: 131072"
|
||||
echo "Expected: $exp"
|
||||
echo "Got : $fs"
|
||||
rc=1
|
||||
fi
|
||||
|
||||
@ -24,9 +24,10 @@ rc=$?
|
||||
|
||||
fs=$(get_filesize NVChip)
|
||||
[ $? -ne 0 ] && exit 1
|
||||
if [ $fs -ne 176832 ]; then
|
||||
exp=176832
|
||||
if [ $fs -ne $exp ]; then
|
||||
echo "Error: Unexpected size of NVChip file."
|
||||
echo "Expected: 131072"
|
||||
echo "Expected: $exp"
|
||||
echo "Got : $fs"
|
||||
rc=1
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user