Re: [PATCH 015/103] qemuxml2argvtest: Refactor QAPI schema validation code

2021-10-08 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: Prevent duplication of code when extending the validator for new commands. Add a struct describing a command to validate and make the validation loop a bit more robust to corner cases. Signed-off-by: Peter Krempa --- tests/qemuxml2argvtest.c | 120

Re: [PATCH 015/103] qemuxml2argvtest: Refactor QAPI schema validation code

2021-10-08 Thread Ján Tomko
On a Thursday in 2021, Peter Krempa wrote: Prevent duplication of code when extending the validator for new commands. Add a struct describing a command to validate and make the validation loop a bit more robust to corner cases. Signed-off-by: Peter Krempa --- tests/qemuxml2argvtest.c | 120

[PATCH 015/103] qemuxml2argvtest: Refactor QAPI schema validation code

2021-10-07 Thread Peter Krempa
Prevent duplication of code when extending the validator for new commands. Add a struct describing a command to validate and make the validation loop a bit more robust to corner cases. Signed-off-by: Peter Krempa --- tests/qemuxml2argvtest.c | 120 +-- 1 file