jjb: babeltrace: use clang-format-16
[lttng-ci.git] / scripts / lttng-tools / postbuild_collect_tap_results.sh
CommitLineData
70076186
MJ
1#!/bin/bash
2#
3# SPDX-FileCopyrightText: 2021 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
4#
5# SPDX-License-Identifier: GPL-2.0-or-later
6
7# Collect the tap logs in a post build step when the build was terminated due
8# to timeout.
9
10set -exu
11
12# Required variables
13WORKSPACE=${WORKSPACE:-}
14
15SRCDIR="$WORKSPACE/src/lttng-tools"
16TAPDIR="$WORKSPACE/tap"
17LOGDIR="$WORKSPACE/log"
18
19cd "$SRCDIR"
20
21# Collect all available tap logs
22rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$TAPDIR" || true
23
24# Collect the test suites top-level log which includes all tests failures
25rsync -a --include 'test-suite.log' --include '*/' --exclude='*' tests/ "$LOGDIR" || true
26
27# EOF
This page took 0.026037 seconds and 4 git commands to generate.