From 017e206cf1e9c6c0bf9e60c13908b7d248c8da76 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 19 Jul 2015 00:13:26 +0800 Subject: [PATCH] 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 --- qa/workunits/cephtool/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 854a0b4695529..bfcc58f9ea92f 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' } -- 2.39.5