diff options
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 67d8b9ca8d..ed82a56ae3 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -31,6 +31,7 @@ TESTIMAGE_AUTO ??= "0" | |||
31 | # TEST_LOG_DIR contains a command ssh log and may contain infromation about what command is running, output and return codes and for qemu a boot log till login. | 31 | # TEST_LOG_DIR contains a command ssh log and may contain infromation about what command is running, output and return codes and for qemu a boot log till login. |
32 | # Booting is handled by this class, and it's not a test in itself. | 32 | # Booting is handled by this class, and it's not a test in itself. |
33 | # TEST_QEMUBOOT_TIMEOUT can be used to set the maximum time in seconds the launch code will wait for the login prompt. | 33 | # TEST_QEMUBOOT_TIMEOUT can be used to set the maximum time in seconds the launch code will wait for the login prompt. |
34 | # TEST_QEMUPARAMS can be used to pass extra parameters to qemu, e.g. "-m 1024" for setting the amount of ram to 1 GB. | ||
34 | 35 | ||
35 | TEST_LOG_DIR ?= "${WORKDIR}/testimage" | 36 | TEST_LOG_DIR ?= "${WORKDIR}/testimage" |
36 | 37 | ||
@@ -63,6 +64,7 @@ TEST_SUITES ?= "${DEFAULT_TEST_SUITES}" | |||
63 | 64 | ||
64 | TEST_QEMUBOOT_TIMEOUT ?= "1000" | 65 | TEST_QEMUBOOT_TIMEOUT ?= "1000" |
65 | TEST_TARGET ?= "qemu" | 66 | TEST_TARGET ?= "qemu" |
67 | TEST_QEMUPARAMS ?= "" | ||
66 | 68 | ||
67 | TESTIMAGEDEPENDS = "" | 69 | TESTIMAGEDEPENDS = "" |
68 | TESTIMAGEDEPENDS_append_qemuall = " qemu-native:do_populate_sysroot qemu-helper-native:do_populate_sysroot qemu-helper-native:do_addto_recipe_sysroot" | 70 | TESTIMAGEDEPENDS_append_qemuall = " qemu-native:do_populate_sysroot qemu-helper-native:do_populate_sysroot qemu-helper-native:do_addto_recipe_sysroot" |
@@ -295,7 +297,8 @@ def testimage_main(d): | |||
295 | try: | 297 | try: |
296 | # We need to check if runqemu ends unexpectedly | 298 | # We need to check if runqemu ends unexpectedly |
297 | # or if the worker send us a SIGTERM | 299 | # or if the worker send us a SIGTERM |
298 | tc.target.start(extra_bootparams=bootparams) | 300 | tc.target.start(params=d.getVar("TEST_QEMUPARAMS"), |
301 | extra_bootparams=bootparams) | ||
299 | results = tc.runTests() | 302 | results = tc.runTests() |
300 | except (RuntimeError, BlockingIOError) as err: | 303 | except (RuntimeError, BlockingIOError) as err: |
301 | if isinstance(err, RuntimeError): | 304 | if isinstance(err, RuntimeError): |