Use arithmetic expansion in system tests (followup)

These are manual edits in addition of the automated changes from the
previous commit.
This commit is contained in:
Tom Krizek
2023-06-22 14:09:22 +02:00
parent 4d42bdc245
commit 1436025e20
16 changed files with 33 additions and 31 deletions

View File

@@ -39,7 +39,7 @@ status=$((status + ret))
echo_i "Checking if message with compression disabled is significantly larger"
echo_i "Disabled $COMPDIS vs enabled $COMPEN"
val=`expr \( $COMPDIS \* 3 / 2 \) / $COMPEN`
val=$(( (COMPDIS * 3 / 2) / COMPEN))
if [ $val -le 1 ]; then
echo_i "failed"
status=$((status + 1))