osdmaptool: fix cli tests

From c22c84a88c.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-11-06 19:59:56 -08:00
parent 082e7c9eed
commit 1ee112fa2e
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
osdmaptool: writing epoch 1 to myosdmap
$ ORIG_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
osdmaptool: osdmap file 'myosdmap'
$ osdmaptool --createsimple 3 myosdmap
osdmaptool: osdmap file 'myosdmap'
@ -27,6 +28,7 @@
$ NEW_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
osdmaptool: osdmap file 'myosdmap'
$ [ "$ORIG_FSID" = "$NEW_FSID" ]
$ osdmaptool --createsimple 1 --clobber myosdmap
@ -49,6 +51,7 @@
$ NEW_FSID="$(osdmaptool --print myosdmap|grep ^fsid)"
osdmaptool: osdmap file 'myosdmap'
#TODO --clobber should probably set new fsid, remove the [1]
$ [ "$ORIG_FSID" != "$NEW_FSID" ]
[1]

View File

@ -1,4 +1,5 @@
$ osdmaptool --create-from-conf om -c $TESTDIR/ceph.conf.withracks > /dev/null
osdmaptool: osdmap file 'om'
$ osdmaptool --test-map-pg 0.0 om
osdmaptool: osdmap file 'om'
parsed '0.0' -> 0.0