summaryrefslogtreecommitdiffstats
path: root/tests/env-imsm-template
diff options
context:
space:
mode:
authorMichal Zylowski <michal.zylowski@intel.com>2018-06-22 16:34:08 +0200
committerJes Sorensen <jsorensen@fb.com>2018-07-11 19:16:02 +0200
commitb202e322c13572078cc1285c41a8de23609e0820 (patch)
treed845eacc17494110fab38d61265694265addfdb9 /tests/env-imsm-template
parenttests, imsm: Set correct expected offset between volumes (diff)
downloadmdadm-b202e322c13572078cc1285c41a8de23609e0820.tar.xz
mdadm-b202e322c13572078cc1285c41a8de23609e0820.zip
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 <michal.zylowski@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'tests/env-imsm-template')
-rw-r--r--tests/env-imsm-template2
1 files changed, 1 insertions, 1 deletions
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