From: Joao Eduardo Luis Date: Tue, 30 May 2017 19:59:53 +0000 (+0100) Subject: qa/workunits: adjust expected return on cephtool X-Git-Tag: v12.1.0~266^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e0d3de6b29621519be32322c7429acd240c4e6e;p=ceph.git qa/workunits: adjust expected return on cephtool We changed the behavior of `osd create` to return EEXIST instead of EINVAL if an uuid exists with a different `id` than the one the user provides. Signed-off-by: Joao Eduardo Luis --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index aa9d61d5e014..9e4c1e51ccf3 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1303,8 +1303,8 @@ function test_mon_osd() max_osd=$((max_osd + 1)) ceph osd getmaxosd | grep "max_osd = $max_osd" - ceph osd create $uuid $((id - 1)) 2>&1 | grep 'EINVAL' - ceph osd create $uuid $((id + 1)) 2>&1 | grep 'EINVAL' + ceph osd create $uuid $((id - 1)) 2>&1 | grep 'EEXIST' + ceph osd create $uuid $((id + 1)) 2>&1 | grep 'EEXIST' id2=`ceph osd create $uuid` [ "$id" = "$id2" ] id2=`ceph osd create $uuid $id` @@ -1317,7 +1317,7 @@ function test_mon_osd() max_osd=$((id + 1)) ceph osd getmaxosd | grep "max_osd = $max_osd" - ceph osd create $uuid $gap_start 2>&1 | grep 'EINVAL' + ceph osd create $uuid $gap_start 2>&1 | grep 'EEXIST' # # When CEPH_CLI_TEST_DUP_COMMAND is set, osd create