]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
selftest/bblayers: Refactor JSON schema validation
authorYoann Congal <yoann.congal@smile.fr>
Fri, 24 Oct 2025 00:16:19 +0000 (02:16 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Oct 2025 16:58:15 +0000 (16:58 +0000)
commitb10b4d5b6376fd828c1cb843ea2e24da298657b6
treebaf84df5df45a6e11477e20b61a266e7317c29ab
parent15107ba12ff35b27c2c0ae5a9dcc9c1418f55b13
selftest/bblayers: Refactor JSON schema validation

* Extract a function "validate_json"
* Read bitbake variables in setUpClass to avoid makeing repeated calls
  to bitbake
* Allow to specify the schema relative to $COREBASE/meta/files/
* Specify the Base URI to allow schema to reference each other

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/lib/oeqa/selftest/cases/bblayers.py