qapi: support updating expected test output via make
commit7ce54db23048bfcc3ea6821525bf333b715c7655
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 20 Apr 2023 10:26:17 +0000 (20 11:26 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 25 Apr 2023 13:23:06 +0000 (25 15:23 +0200)
treec55a674cbde47fdd542c88d37cbc71cc6107a035
parentde3b3f529d453dfaa1f8b437c1a1f0766d8108e4
qapi: support updating expected test output via make

It is possible to pass --update to tests/qapi-schema/test-qapi.py
to make it update the output files on error. This is inconvenient
to achieve though when test-qapi.py is run indirectly by make/meson.

Instead simply allow for an env variable to be set:

 $ QAPI_TEST_UPDATE= make check-qapi-schema

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230420102619.348173-2-berrange@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
tests/qapi-schema/test-qapi.py