From: Loic Dachary Date: Tue, 9 Dec 2014 23:08:57 +0000 (+0100) Subject: tests: avoid tab interpretation problem on fedora 20 X-Git-Tag: v0.80.8~5^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=cf102df7a3f3b38824c26b9e44a21664fcf979a7;p=ceph.git tests: avoid tab interpretation problem on fedora 20 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 --- diff --git a/src/test/cli/osdmaptool/test-map-pgs.t b/src/test/cli/osdmaptool/test-map-pgs.t index b64f2d99a2d31..222bd76f31dfd 100644 --- a/src/test/cli/osdmaptool/test-map-pgs.t +++ b/src/test/cli/osdmaptool/test-map-pgs.t @@ -24,7 +24,7 @@ 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") @@ -39,7 +39,7 @@ 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")