diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-03-14 11:25:56 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-20 23:12:26 +0000 |
commit | 9cc65ed0209b756262ae4c73a5d172db4fe01fd6 (patch) | |
tree | dcacbdda16e5b5010811414f58c3f947dff9ac90 /meta/lib/oeqa/selftest/devtool.py | |
parent | 3c5ee61b6d065de195e8ca9126b75c0607b02050 (diff) | |
download | poky-9cc65ed0209b756262ae4c73a5d172db4fe01fd6.tar.gz |
Revert "selftest: Added MACHINE = "qemux86" to tests that use runqemu"
This is not the correct way to handle this - it significantly increases
the time taken to run oe-selftest anywhere MACHINE is set to some other
value (for example "qemux86-64"), because all of the artifacts for
qemux86 need to then be built as well when running the test. If we need
to skip these tests on non-QEMU machines, the devtool test already
demonstrates how to do that.
This reverts commit 169e1eaa4fc5ed03e2307b68686a7f5b1db37a36.
(From OE-Core rev: f60da6d5be5469ed5b834759c3822471f81fcdd2)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/devtool.py')
-rw-r--r-- | meta/lib/oeqa/selftest/devtool.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index d41af2fb26..2e4b6dada3 100644 --- a/meta/lib/oeqa/selftest/devtool.py +++ b/meta/lib/oeqa/selftest/devtool.py | |||
@@ -979,11 +979,10 @@ class DevtoolTests(DevtoolBase): | |||
979 | # Additionally we are testing build-time functionality as well, so | 979 | # Additionally we are testing build-time functionality as well, so |
980 | # really this has to be done as an oe-selftest test. | 980 | # really this has to be done as an oe-selftest test. |
981 | # | 981 | # |
982 | |||
983 | features = 'MACHINE = "qemux86"\n' | ||
984 | self.write_config(features) | ||
985 | |||
986 | # Check preconditions | 982 | # Check preconditions |
983 | machine = get_bb_var('MACHINE') | ||
984 | if not machine.startswith('qemu'): | ||
985 | self.skipTest('This test only works with qemu machines') | ||
987 | if not os.path.exists('/etc/runqemu-nosudo'): | 986 | if not os.path.exists('/etc/runqemu-nosudo'): |
988 | self.skipTest('You must set up tap devices with scripts/runqemu-gen-tapdevs before running this test') | 987 | self.skipTest('You must set up tap devices with scripts/runqemu-gen-tapdevs before running this test') |
989 | result = runCmd('PATH="$PATH:/sbin:/usr/sbin" ip tuntap show', ignore_status=True) | 988 | result = runCmd('PATH="$PATH:/sbin:/usr/sbin" ip tuntap show', ignore_status=True) |