From: Michal Zylowski Date: Fri, 22 Jun 2018 14:34:08 +0000 (+0200) Subject: tests, imsm: Fix unit inconsistency in tests error messages X-Git-Tag: mdadm-4.1-rc2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b202e322c13572078cc1285c41a8de23609e0820;p=thirdparty%2Fmdadm.git tests, imsm: Fix unit inconsistency in tests error messages Chunk size copied from sysfs should be divied by 1024 to compare with expected chunk size. Signed-off-by: Michal Zylowski Signed-off-by: Jes Sorensen --- diff --git a/tests/env-imsm-template b/tests/env-imsm-template index ea45bae9..40479b48 100644 --- a/tests/env-imsm-template +++ b/tests/env-imsm-template @@ -30,7 +30,7 @@ imsm_check() { fi _chunk=`cat ${sysfs}/md/chunk_size` if [ $t_chunk -ne $((_chunk/1024)) ]; then - echo "**Error**: Chunk size mismatch - expected $t_chunk, actual $_chunk" >&2 + echo "**Error**: Chunk size mismatch - expected $t_chunk, actual $(($_chunk/1024))" >&2 err=$((err + 1)) fi for i in `seq 0 $((t_num_disks - 1))`; do