]> code.ossystems Code Review - openembedded-core.git/commit
scripts/oe-selftest: Allow to run tests on random/all MACHINEs
authorDaniel Istrate <daniel.alexandrux.istrate@intel.com>
Tue, 5 Jan 2016 14:53:34 +0000 (16:53 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jan 2016 13:40:04 +0000 (13:40 +0000)
commit4a9c3653eecd9a3c1b45bab5e16c8d679c55f8bd
treeeab3d99f1ee5c9001be340cbbb6e98ce539de161
parentd6ee070127a08be98958bbb8b11c80bb64165dc7
scripts/oe-selftest: Allow to run tests on random/all MACHINEs

Add an option for random MACHINE into oe-selftest:
--machine [random/all]
1. random: will set a random MACHINE for each test
2. all: will run tests for all machines

Custom machine sets only weak default values (??=) for MACHINE in machine.inc.
This let test cases that require a specific MACHINE to be able to
override it, using (?= or =).

e.g.:
oe-selftest --run-tests signing --machine random -->
will run all tests switching MACHINE randomly for each test

oe-selftest --run-tests signing --machine all -->
for each machine will run all tests

oe-selftest --run-all-tests --machine random

Also update oeqa/selftest/base.py to accomodate this feature.

Fix for [YOCTO #5880].

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/base.py
scripts/oe-selftest