]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits: cephtool: take EOPNOTSUPP as an alias of ENOTSUP 5282/head
authorKefu Chai <kchai@redhat.com>
Sat, 18 Jul 2015 16:13:26 +0000 (00:13 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 18 Jul 2015 16:21:23 +0000 (00:21 +0800)
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 <kchai@redhat.com>
qa/workunits/cephtool/test.sh

index 854a0b4695529b4f8e6113a12bc16721e1514f71..bfcc58f9ea92faf437f20b1118e336a95eaa891c 100755 (executable)
@@ -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'
 }