diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-31 22:41:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-06 09:30:10 +0100 |
commit | 232cb7b0553f844be695d26f55aaf531029a6a9a (patch) | |
tree | 5fa23ee5245cfc0ecec91d1ff8c1969165a6580c /meta/classes/testimage.bbclass | |
parent | 82d7dc9709bb2cc85a42b168bdd25ab70e763bee (diff) | |
download | poky-232cb7b0553f844be695d26f55aaf531029a6a9a.tar.gz |
oeqa/runqemu: Support RUNQEMU_TMPFS_DIR as a location to copy snapshot images to
We have a working theory that IO queues on the autobuilder are impacting
runtime testing under qemu, particularly async writes which inice does not
influence. We already pass the snapshot option to qemu which copies the
image and runs out of the copy. Add in the ability to copy the image to
a specificed location which can be a tmpfs. This means that writes to the
image would no longer be blocked by other writes to disk in the system.
Preliminary tests show that this does improve the qemu errors at the expense
of sometimes showing qemu startup timeouts as on a loaded system with a large
test image, it can take longer than 120s to copy the image to tmpfs. Having
a most consistent failure mode for loaded tests is probably desireable though.
(From OE-Core rev: fd1c26ab426c3699ffd8082b83d65a84c8eb8bff)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-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 78da4b09bd..e613759503 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -305,6 +305,7 @@ def testimage_main(d): | |||
305 | 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), | 305 | 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), |
306 | 'serial_ports': len(d.getVar("SERIAL_CONSOLES").split()), | 306 | 'serial_ports': len(d.getVar("SERIAL_CONSOLES").split()), |
307 | 'ovmf' : ovmf, | 307 | 'ovmf' : ovmf, |
308 | 'tmpfsdir' : d.getVar("RUNQEMU_TMPFS_DIR"), | ||
308 | } | 309 | } |
309 | 310 | ||
310 | if d.getVar("TESTIMAGE_BOOT_PATTERNS"): | 311 | if d.getVar("TESTIMAGE_BOOT_PATTERNS"): |