Use . instead of tab in echo to avoid variations in how escape sequences
are interpreted by the shell.
http://tracker.ceph.com/issues/10281 Fixes: #10281
Signed-off-by: Loic Dachary <ldachary@redhat.com>
pool 1 pg_num 8000
pool 2 pg_num 8000
$ TOTAL=$((POOL_COUNT * $PG_NUM))
- $ PATTERN=$(echo "size $SIZE\t$TOTAL")
+ $ PATTERN=$(echo "size $SIZE.$TOTAL")
$ grep "$PATTERN" $OUT || cat "$OUT"
size 3\t24000 (esc)
$ STATS_CRUSH=$(grep '^ avg ' "$OUT")
pool 1 pg_num 8000
pool 2 pg_num 8000
$ TOTAL=$((POOL_COUNT * $PG_NUM))
- $ PATTERN=$(echo "size $SIZE\t$TOTAL")
+ $ PATTERN=$(echo "size $SIZE.$TOTAL")
$ grep "$PATTERN" $OUT || cat "$OUT"
size 3\t24000 (esc)
$ STATS_RANDOM=$(grep '^ avg ' "$OUT")