]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: avoid tab interpretation problem on fedora 20
authorLoic Dachary <ldachary@redhat.com>
Tue, 9 Dec 2014 23:08:57 +0000 (00:08 +0100)
committerLoic Dachary <ldachary@redhat.com>
Mon, 22 Dec 2014 21:54:19 +0000 (22:54 +0100)
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>
src/test/cli/osdmaptool/test-map-pgs.t

index b64f2d99a2d3164845574e0c8ce438b889b929cd..222bd76f31dfdf568b28201fbb677ad8348a7d9d 100644 (file)
@@ -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")