junit.sh 299 B

123456789101112131415
  1. #! /bin/bash
  2. # $ ci/junit.sh <build directory>
  3. #
  4. # If there is a OEQA test report in JSON format present in the build directory,
  5. # transform it to JUnit XML using resulttool.
  6. set -e -u
  7. BUILDDIR=$1
  8. JSON=$BUILDDIR/tmp/log/oeqa/testresults.json
  9. if test -f $JSON; then
  10. resulttool junit $JSON
  11. fi