diff options
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 7f9c918273..53c6174ac5 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -195,7 +195,7 @@ def testimage_main(d): | |||
195 | import oeqa.runtime | 195 | import oeqa.runtime |
196 | import time | 196 | import time |
197 | import signal | 197 | import signal |
198 | from oeqa.oetest import loadTests, runTests, ImageTestContext | 198 | from oeqa.oetest import ImageTestContext |
199 | from oeqa.targetcontrol import get_target_controller | 199 | from oeqa.targetcontrol import get_target_controller |
200 | from oeqa.utils.dump import get_host_dumper | 200 | from oeqa.utils.dump import get_host_dumper |
201 | 201 | ||
@@ -219,7 +219,7 @@ def testimage_main(d): | |||
219 | # we are doing that to find compile errors in the tests themselves | 219 | # we are doing that to find compile errors in the tests themselves |
220 | # before booting the image | 220 | # before booting the image |
221 | try: | 221 | try: |
222 | loadTests(tc) | 222 | tc.loadTests() |
223 | except Exception as e: | 223 | except Exception as e: |
224 | import traceback | 224 | import traceback |
225 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) | 225 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) |
@@ -233,7 +233,7 @@ def testimage_main(d): | |||
233 | try: | 233 | try: |
234 | target.start() | 234 | target.start() |
235 | starttime = time.time() | 235 | starttime = time.time() |
236 | result = runTests(tc) | 236 | result = tc.runTests() |
237 | stoptime = time.time() | 237 | stoptime = time.time() |
238 | if result.wasSuccessful(): | 238 | if result.wasSuccessful(): |
239 | bb.plain("%s - Ran %d test%s in %.3fs" % (pn, result.testsRun, result.testsRun != 1 and "s" or "", stoptime - starttime)) | 239 | bb.plain("%s - Ran %d test%s in %.3fs" % (pn, result.testsRun, result.testsRun != 1 and "s" or "", stoptime - starttime)) |