summaryrefslogtreecommitdiffstats
path: root/meta/classes/testsdk.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/testsdk.bbclass')
-rw-r--r--meta/classes/testsdk.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
index 2b5d66b193..5df17bfa9e 100644
--- a/meta/classes/testsdk.bbclass
+++ b/meta/classes/testsdk.bbclass
@@ -42,6 +42,8 @@ def testsdk_main(d):
42 host_pkg_manifest = OESDKTestContextExecutor._load_manifest( 42 host_pkg_manifest = OESDKTestContextExecutor._load_manifest(
43 d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest")) 43 d.expand("${SDK_DEPLOY}/${TOOLCHAIN_OUTPUTNAME}.host.manifest"))
44 44
45 processes = d.getVar("TESTIMAGE_NUMBER_THREADS") or d.getVar("BB_NUMBER_THREADS")
46
45 sdk_dir = d.expand("${WORKDIR}/testimage-sdk/") 47 sdk_dir = d.expand("${WORKDIR}/testimage-sdk/")
46 bb.utils.remove(sdk_dir, True) 48 bb.utils.remove(sdk_dir, True)
47 bb.utils.mkdirhier(sdk_dir) 49 bb.utils.mkdirhier(sdk_dir)
@@ -65,7 +67,10 @@ def testsdk_main(d):
65 import traceback 67 import traceback
66 bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) 68 bb.fatal("Loading tests failed:\n%s" % traceback.format_exc())
67 69
68 result = tc.runTests() 70 if processes:
71 result = tc.runTests(processes=int(processes))
72 else:
73 result = tc.runTests()
69 74
70 component = "%s %s" % (pn, OESDKTestContextExecutor.name) 75 component = "%s %s" % (pn, OESDKTestContextExecutor.name)
71 context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env)) 76 context_msg = "%s:%s" % (os.path.basename(tcname), os.path.basename(sdk_env))