blob: c0f9a7aabf56b0416e25bfb1b01b96fe749bdf5e [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8set -e
9
10# Generate test report
11if [ "$CI_ROOT" ]; then
12 # Gather Coverity scan summary if it was performed as part of this job
13 if [ "$(find -maxdepth 1 -name '*coverity*.test' -type f | wc -l)" != 0 ]; then
14 if ! "$CI_ROOT/script/coverity_summary.py" "$BUILD_URL" > coverity.data; then
15 rm -f coverity.data
16 fi
17 fi
18
19 "$CI_ROOT/script/gen_test_report.py" \
20 --job "${worker_job:-tf-worker}" \
21 --build-job "${lava_job:-tf-build-for-lava}" \
22 --meta-data clone.data \
23 --meta-data override.data \
24 --meta-data inject.data \
25 --meta-data html:coverity.data \
26 || true
27fi