diff options
author | Alejandro Hernandez Samaniego <alejandro@enedino.org> | 2020-02-08 02:30:04 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-13 12:19:14 +0000 |
commit | e5978093075fe84ac949b2f4022f92e3f83ec2c0 (patch) | |
tree | 2cb5a60ac829f47416ac3cb78c8be002432f32a0 /meta/classes | |
parent | 575e4b22278081c86df1b0bce595d91a09a1cdbf (diff) | |
download | poky-e5978093075fe84ac949b2f4022f92e3f83ec2c0.tar.gz |
testimage: Allow testing on QEMU machines with a single serial port
commmit 6cde67d0a84 enables the use of qemurunner on machines that
only have a single serial port, but still sets the default value
as serial_ports=2 if not provided.
The testimage class does not call qemurunner with a serial_ports
argument, hence always defaulting to two.
Pass the serial_ports argument from the testimage class to allow
tests to run on QEMU machines with a single serial port.
(From OE-Core rev: a50d0163770f0b405a8de8a8a9cccd48c1de4112)
Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/testimage.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 844ed87944..0d55c3247e 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -256,6 +256,7 @@ def testimage_main(d): | |||
256 | 'kvm' : kvm, | 256 | 'kvm' : kvm, |
257 | 'slirp' : slirp, | 257 | 'slirp' : slirp, |
258 | 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), | 258 | 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), |
259 | 'serial_ports': len(d.getVar("SERIAL_CONSOLES").split()), | ||
259 | } | 260 | } |
260 | 261 | ||
261 | # TODO: Currently BBPATH is needed for custom loading of targets. | 262 | # TODO: Currently BBPATH is needed for custom loading of targets. |