summaryrefslogtreecommitdiff
path: root/meta-arm/ci/junit.sh
blob: 6262c34b11d150f8c73267fa6365210fc200cb2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /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