]> xenbits.xensource.com Git - libvirt.git/commit
qemuxml2argvtest: Don't re-parse and re-generate commandline for QAPI schema validation
authorPeter Krempa <pkrempa@redhat.com>
Wed, 19 Oct 2022 15:10:45 +0000 (17:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Oct 2022 07:34:42 +0000 (09:34 +0200)
commite204f8e51674a62d4422ee80d6b359afc6e39bbb
treea132ffb674f4df0f4b8c6bd42d7a494904ac3549
parentab966b9d315a1e81b65525553831cc8806dd7e20
qemuxml2argvtest: Don't re-parse and re-generate commandline for QAPI schema validation

The removal of the special internal flag for '-netdev' validatition now
allows us to use the same virCommand object for validation of the
schema.

Pass it into the validator instead of re-parsing and re-generating
everything.

This improved the runtime of qemuxml2argvtest by ~25% on my box.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tests/qemuxml2argvtest.c