summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2013-01-18 18:28:44 -0800
committerDan Mick <dan.mick@inktank.com>2013-01-18 18:32:13 -0800
commit7d9d7651beab8a104c1f41b9ced0ed558ad079f1 (patch)
treea8558c81730689c073c9232e051818fc135607af
parent37dbf7d9df93dd0e92019be31eaa1a19dd9569c7 (diff)
downloadceph-7d9d7651beab8a104c1f41b9ced0ed558ad079f1.tar.gz
workunit/cephtool: Use '! cmd' when expecting failure
Signed-off-by: Dan Mick <dan.mick@inktank.com>
-rwxr-xr-xqa/workunits/cephtool/test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh
index 22ca2008651..1c9b48a5d9f 100755
--- a/qa/workunits/cephtool/test.sh
+++ b/qa/workunits/cephtool/test.sh
@@ -13,8 +13,9 @@ ceph mon dump
ceph mds dump
ceph tell osd.0 version
-ceph tell osd.9999 version && exit 1
-ceph tell osd.foo version && exit 1
+! ceph tell osd.9999 version
+! ceph tell osd.foo version
+
for id in `ceph osd ls` ; do
ceph tell osd.$id version