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:
Stefan Berger 2022-07-12 09:45:49 -04:00 committed by Stefan Berger
parent c6c8f63686
commit 4e5dffc08a
3 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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