]> code.ossystems Code Review - openembedded-core.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>
Thu, 10 Aug 2017 23:08:31 +0000 (00:08 +0100)
commitc7ef6000b11f1b1cd27c9bc408eea9f76bb94a3b
tree997efbecea671b8d8f2596219907e462e8c88fb8
parentd6a0bc57fa07d887a78aa8ed76e3bf4558dc5127
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/cases/runtime_test.py