]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix osd pool ls invalid test 2622/head
authorLoic Dachary <loic-201408@dachary.org>
Wed, 1 Oct 2014 21:39:39 +0000 (23:39 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Wed, 1 Oct 2014 21:41:09 +0000 (23:41 +0200)
expect_false does not extend past the pipe and fails because the command
succeeds

introduced in f05c977bbcd310a83e6df03344a72d4cc06e1cc3

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
qa/workunits/cephtool/test.sh

index 3afc3f013d3f68e0f5d0f68eed0655e59319817e..c9c68f6f57e34c34420777450992b80d2438013c 100755 (executable)
@@ -218,7 +218,7 @@ function test_tiering()
   ceph osd tier remove slow cache3
   ceph osd pool ls | grep cache3
   ceph osd pool delete cache3 cache3 --yes-i-really-really-mean-it
-  expect_false ceph osd pool ls | grep cache3
+  ! ceph osd pool ls | grep cache3 || exit 1
 
   ceph osd pool delete slow2 slow2 --yes-i-really-really-mean-it
   ceph osd pool delete slow slow --yes-i-really-really-mean-it