From: Kefu Chai Date: Sat, 18 Jul 2015 16:13:26 +0000 (+0800) Subject: qa/workunits: cephtool: take EOPNOTSUPP as an alias of ENOTSUP X-Git-Tag: v9.1.0~522^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=017e206cf1e9c6c0bf9e60c13908b7d248c8da76;p=ceph.git qa/workunits: cephtool: take EOPNOTSUPP as an alias of ENOTSUP the proble breaks `test_mon_deprecated_commands` on ubuntu precise, on the python shipped with ubuntu precise, errno.errorcode[95] evalutes to `EOPNOTSUPP` but not `ENOTSUP`. but these two errnos are equal in glibc. Signed-off-by: Kefu Chai --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 854a0b469552..bfcc58f9ea92 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1632,13 +1632,13 @@ function test_mon_deprecated_commands() ceph tell mon.a injectargs '--mon-debug-deprecated-as-obsolete' expect_false ceph tell mon.a compact 2> $TMPFILE - check_response "ENOTSUP: command is obsolete" + check_response "\(EOPNOTSUPP\|ENOTSUP\): command is obsolete" expect_false ceph tell mon.a scrub 2> $TMPFILE - check_response "ENOTSUP: command is obsolete" + check_response "\(EOPNOTSUPP\|ENOTSUP\): command is obsolete" expect_false ceph tell mon.a sync force 2> $TMPFILE - check_response "ENOTSUP: command is obsolete" + check_response "\(EOPNOTSUPP\|ENOTSUP\): command is obsolete" ceph tell mon.a injectargs '--no-mon-debug-deprecated-as-obsolete' }