]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstatetests: Use higher parallelism value
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Jun 2017 09:21:46 +0000 (10:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Jun 2017 09:17:55 +0000 (10:17 +0100)
Since the processing code for signature generation is now threaded,
use higher thread values as examples in this code for better performance.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/sstatetests.py

index 8d05e3042390909fd1c66da9bef8cb8ac99e5ac5..feadf3c51c4b7fd22aa8a187e0f3937da0fed4f2 100644 (file)
@@ -418,7 +418,7 @@ DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
 
         self.write_config("""
 TMPDIR = "${TOPDIR}/tmp-sstatesamehash"
-BB_NUMBER_THREADS = "1"
+BB_NUMBER_THREADS = "${@oe.utils.cpu_count()}"
 PARALLEL_MAKE = "-j 1"
 DL_DIR = "${TOPDIR}/download1"
 TIME = "111111"
@@ -431,7 +431,7 @@ http_proxy = ""
         bitbake("world meta-toolchain -S none")
         self.write_config("""
 TMPDIR = "${TOPDIR}/tmp-sstatesamehash2"
-BB_NUMBER_THREADS = "2"
+BB_NUMBER_THREADS = "${@oe.utils.cpu_count()-1}"
 PARALLEL_MAKE = "-j 2"
 DL_DIR = "${TOPDIR}/download2"
 TIME = "222222"