diff options
Diffstat (limited to 'meta/classes/testsdk.bbclass')
-rw-r--r-- | meta/classes/testsdk.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index 47bad29096..ba8897e5ea 100644 --- a/meta/classes/testsdk.bbclass +++ b/meta/classes/testsdk.bbclass | |||
@@ -13,7 +13,7 @@ def testsdk_main(d): | |||
13 | import oeqa.sdk | 13 | import oeqa.sdk |
14 | import time | 14 | import time |
15 | import subprocess | 15 | import subprocess |
16 | from oeqa.oetest import loadTests, runTests, SDKTestContext | 16 | from oeqa.oetest import SDKTestContext |
17 | 17 | ||
18 | pn = d.getVar("PN", True) | 18 | pn = d.getVar("PN", True) |
19 | bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR", True)) | 19 | bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR", True)) |
@@ -40,13 +40,13 @@ def testsdk_main(d): | |||
40 | # we are doing that to find compile errors in the tests themselves | 40 | # we are doing that to find compile errors in the tests themselves |
41 | # before booting the image | 41 | # before booting the image |
42 | try: | 42 | try: |
43 | loadTests(tc, "sdk") | 43 | tc.loadTests() |
44 | except Exception as e: | 44 | except Exception as e: |
45 | import traceback | 45 | import traceback |
46 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) | 46 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) |
47 | 47 | ||
48 | starttime = time.time() | 48 | starttime = time.time() |
49 | result = runTests(tc, "sdk") | 49 | result = tc.runTests() |
50 | stoptime = time.time() | 50 | stoptime = time.time() |
51 | if result.wasSuccessful(): | 51 | if result.wasSuccessful(): |
52 | bb.plain("%s SDK(%s):%s - Ran %d test%s in %.3fs" % (pn, os.path.basename(tcname), os.path.basename(sdkenv),result.testsRun, result.testsRun != 1 and "s" or "", stoptime - starttime)) | 52 | bb.plain("%s SDK(%s):%s - Ran %d test%s in %.3fs" % (pn, os.path.basename(tcname), os.path.basename(sdkenv),result.testsRun, result.testsRun != 1 and "s" or "", stoptime - starttime)) |