mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-12 03:10:15 +00:00
Using resulttool we can transform the oeqa JSON reports into JUnit XML, which GitLab can display in pipelines and merge requests. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
16 lines
299 B
Bash
Executable File
16 lines
299 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# $ ci/junit.sh <build directory>
|
|
#
|
|
# If there is a OEQA test report in JSON format present in the build directory,
|
|
# transform it to JUnit XML using resulttool.
|
|
|
|
set -e -u
|
|
|
|
BUILDDIR=$1
|
|
JSON=$BUILDDIR/tmp/log/oeqa/testresults.json
|
|
|
|
if test -f $JSON; then
|
|
resulttool junit $JSON
|
|
fi
|