]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oeqa/runtime_test: use subtests in test_postinst_rootfs_and_boot
authorRoss Burton <ross.burton@intel.com>
Fri, 4 Aug 2017 15:30:14 +0000 (16:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 13 Aug 2017 08:27:37 +0000 (09:27 +0100)
commit582097c103a495807e10b3c5719aad31803decca
tree38d41f026573a889efa87c57b7aca7be02fc4b3f
parent476edb2b472b5dc35bf00b02a629db2ada512df3
oeqa/runtime_test: use subtests in test_postinst_rootfs_and_boot

As this test has two nested loops and actually runs six times, use
UnitTest.subTest() so we can tell which instance is failing, and to run all
variations instead of failing on the first one.

Also set PACKAGE_CLASSES to just the type we need to reduce the verboseness of
the output, and consolidate the feature generation to be neater.

(From OE-Core rev: c7ef6000b11f1b1cd27c9bc408eea9f76bb94a3b)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/runtime_test.py