blob: 458c8b03ce24937f63ba9bcf500ca1aad66c3afc [file] [log] [blame]
#!/usr/bin/env bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
set -e
# Generate test report
if [ "$CI_ROOT" ]; then
# Gather Coverity scan summary if it was performed as part of this job
if [ "$(find -maxdepth 1 -name '*coverity*.test' -type f | wc -l)" != 0 ]; then
if ! "$CI_ROOT/script/coverity_summary.py" "$BUILD_URL" > coverity.data; then
rm -f coverity.data
fi
fi
"$CI_ROOT/script/gen_test_report.py" \
--job "${worker_job:-tf-worker}" \
--build-job "${lava_job:-tf-build-for-lava}" \
--meta-data clone.data \
--meta-data override.data \
--meta-data inject.data \
--meta-data html:coverity.data \
|| true
source $CI_ROOT/script/gen_merge_report.sh "${WORKSPACE}/report.json" \
"${WORKSPACE}/report.html"
fi