mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
tests/ci: run ci-full kyua tests in parallel
By default, use all available cpus given to the VM. This can be controlled with the already available PARALLEL_JOBS make variable. Signed-off-by: Siva Mahadevan <me@svmhdvn.name> Pull Request: https://github.com/freebsd/freebsd-src/pull/1754
This commit is contained in:
parent
5fea0aec5c
commit
f6e5bcd471
1 changed files with 2 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ rcvar=freebsdci_enable
|
|||
start_cmd="firstboot_ci_run"
|
||||
stop_cmd=":"
|
||||
os_arch=$(uname -p)
|
||||
parallelism=$(nproc)
|
||||
tardev=/dev/vtbd1
|
||||
metadir=/meta
|
||||
istar=$(file -s ${tardev} | grep "POSIX tar archive" | wc -l)
|
||||
|
|
@ -74,7 +75,7 @@ full_tests()
|
|||
tar xvf ${tardev} -C ${metadir}
|
||||
cd /usr/tests
|
||||
set +e
|
||||
kyua test
|
||||
kyua -v parallelism=${parallelism} test
|
||||
rc=$?
|
||||
set -e
|
||||
if [ ${rc} -ne 0 ] && [ ${rc} -ne 1 ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue