]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
a/workunits/cephtool/test.sh: --no-log-to-stderr when examining stderr
authorSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 18:04:26 +0000 (11:04 -0700)
committerSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 18:04:26 +0000 (11:04 -0700)
We can get random messages to stderror from socket reconnects and such;
discard those if we are looking at stderr in the test.

Signed-off-by: Sage Weil <sage@inktank.com>
qa/workunits/cephtool/test.sh

index 955a74bac5831237981f6ec6ef0ec648feb1408c..c3e6e8e9b4dab7c6387faf3900382a3670f83283 100755 (executable)
@@ -82,9 +82,9 @@ if ! grep "$mymsg" /tmp/$$; then
 fi
 kill $wpid
 
-ceph mds cluster_down 2>&1 | grep "marked mdsmap DOWN"
+ceph mds cluster_down --no-log-to-stderr 2>&1 | grep "marked mdsmap DOWN"
 expect_false ceph mds cluster_down
-ceph mds cluster_up 2>&1 | grep "unmarked mdsmap DOWN"
+ceph mds cluster_up --no-log-to-stderr 2>&1 | grep "unmarked mdsmap DOWN"
 expect_false ceph mds cluster_up
 
 # XXX is this a reasonable test?
@@ -96,7 +96,7 @@ expect_false ceph mds deactivate 2
 ceph mds dump
 # XXX mds fail, but how do you undo it?
 mdsmapfile=/tmp/mdsmap.$$
-current_epoch=$(ceph mds getmap -o $mdsmapfile 2>&1 | sed 's/.*epoch //')
+current_epoch=$(ceph mds getmap -o $mdsmapfile --no-log-to-stderr 2>&1 | sed 's/.*epoch //')
 [ -s $mdsmapfile ]
 ((epoch = current_epoch + 1))
 ceph mds setmap -i $mdsmapfile $epoch