tests/qapi-schema: Make test-qapi.py -u work when files are absent
commitf333681c6e277004796b0bed808697da1280d140
authorMarkus Armbruster <armbru@redhat.com>
Wed, 22 Sep 2021 12:56:19 +0000 (22 14:56 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 Sep 2021 06:23:25 +0000 (27 08:23 +0200)
tree5dc9bd53716c0b6d55bc3e305f9c2dac21d7f16a
parent436911c2a16c1c2b4d1248f0d5a720f0a9decaad
tests/qapi-schema: Make test-qapi.py -u work when files are absent

test-qapi.py -u updates the expected files.  Since it fails when they
are absent, users have to create them manually before they can use
test-qapi.py to fill in the contents, say for a new test.  Silly.
Improve -u to create them.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210922125619.670673-3-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
tests/qapi-schema/test-qapi.py