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:
Siva Mahadevan 2025-07-04 10:16:09 -04:00 committed by Li-Wen Hsu
parent 5fea0aec5c
commit f6e5bcd471
No known key found for this signature in database
GPG key ID: 7377A4A02A2954DD

View file

@ -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