summaryrefslogtreecommitdiff
path: root/meta-arm/ci/junit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta-arm/ci/junit.sh')
-rwxr-xr-xmeta-arm/ci/junit.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-arm/ci/junit.sh b/meta-arm/ci/junit.sh
new file mode 100755
index 0000000000..6262c34b11
--- /dev/null
+++ b/meta-arm/ci/junit.sh
@@ -0,0 +1,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