Merge pull request #5282 from ceph/wip-fix-test-mon_deprecated_commands

qa/workunits: cephtool: take EOPNOTSUPP as an alias of ENOTSUP

Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
Kefu Chai 2015-07-19 01:07:16 +08:00
commit 64d37b70a6
1 changed files with 3 additions and 3 deletions

View File

@ -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'
}