tests/qapi-schema: Rename pragma-*-crap to pragma-value-not-*
Rename pragma-doc-required-crap to pragma-not-bool, pragma-returns-whitelist-crap to pragma-value-not-list, and pragma-name-case-whitelist-crap to pragma-value-not-list-of-str. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-18-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
4a67bd31a4
commit
e90a61e3cc
@ -144,12 +144,12 @@ schemas = [
|
||||
'oob-coroutine.json',
|
||||
'oob-test.json',
|
||||
'allow-preconfig-test.json',
|
||||
'pragma-doc-required-crap.json',
|
||||
'pragma-extra-junk.json',
|
||||
'pragma-name-case-whitelist-crap.json',
|
||||
'pragma-non-dict.json',
|
||||
'pragma-unknown.json',
|
||||
'pragma-returns-whitelist-crap.json',
|
||||
'pragma-value-not-bool.json',
|
||||
'pragma-value-not-list-of-str.json',
|
||||
'pragma-value-not-list.json',
|
||||
'qapi-schema-test.json',
|
||||
'quoted-structural-chars.json',
|
||||
'redefined-command.json',
|
||||
|
@ -1 +0,0 @@
|
||||
pragma-doc-required-crap.json:3: pragma 'doc-required' must be boolean
|
@ -1 +0,0 @@
|
||||
pragma-name-case-whitelist-crap.json:3: pragma name-case-whitelist must be a list of strings
|
@ -1 +0,0 @@
|
||||
pragma-returns-whitelist-crap.json:3: pragma returns-whitelist must be a list of strings
|
1
tests/qapi-schema/pragma-value-not-bool.err
Normal file
1
tests/qapi-schema/pragma-value-not-bool.err
Normal file
@ -0,0 +1 @@
|
||||
pragma-value-not-bool.json:3: pragma 'doc-required' must be boolean
|
@ -1,3 +1,3 @@
|
||||
# 'doc-required' must be bool
|
||||
# pragma value must be bool
|
||||
|
||||
{ 'pragma': { 'doc-required': {} } }
|
1
tests/qapi-schema/pragma-value-not-list-of-str.err
Normal file
1
tests/qapi-schema/pragma-value-not-list-of-str.err
Normal file
@ -0,0 +1 @@
|
||||
pragma-value-not-list-of-str.json:3: pragma returns-whitelist must be a list of strings
|
@ -1,3 +1,3 @@
|
||||
# 'returns-whitelist' must be list of strings
|
||||
# pragma value must be list of strings
|
||||
|
||||
{ 'pragma': { 'returns-whitelist': [ 'good', [ 'bad' ] ] } }
|
1
tests/qapi-schema/pragma-value-not-list.err
Normal file
1
tests/qapi-schema/pragma-value-not-list.err
Normal file
@ -0,0 +1 @@
|
||||
pragma-value-not-list.json:3: pragma name-case-whitelist must be a list of strings
|
@ -1,3 +1,3 @@
|
||||
# 'name-case-whitelist' must be list of strings
|
||||
# pragma value must be list
|
||||
|
||||
{ 'pragma': { 'name-case-whitelist': false } }
|
Loading…
Reference in New Issue
Block a user