ad11dbb937
Demonstrate that the qapi generator doesn't deal well with enums that aren't up to par. Later patches will update the expected results as the generator is made stricter. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
7 lines
245 B
Plaintext
7 lines
245 B
Plaintext
Traceback (most recent call last):
|
|
File "tests/qapi-schema/test-qapi.py", line 19, in <module>
|
|
exprs = parse_schema(sys.argv[1])
|
|
File "scripts/qapi.py", line 334, in parse_schema
|
|
add_enum(expr['enum'], expr['data'])
|
|
KeyError: 'data'
|