Commit | Line | Data |
---|---|---|
f6baccc6 JR |
1 | #!/bin/bash |
2 | # Copyright (C) 2021 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com> | |
3 | # | |
4 | # This program is free software: you can redistribute it and/or modify | |
5 | # it under the terms of the GNU General Public License as published by | |
6 | # the Free Software Foundation, either version 3 of the License, or | |
7 | # (at your option) any later version. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. | |
13 | # | |
14 | # You should have received a copy of the GNU General Public License | |
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | ||
40430e73 JR |
17 | # This script is necessary since that for job failure due to timeout, the |
18 | # gathering of tap log will not have been executed. | |
f6baccc6 JR |
19 | set -exu |
20 | ||
21 | # Required variables | |
22 | WORKSPACE=${WORKSPACE:-} | |
23 | ||
24 | SRCDIR="$WORKSPACE/src/lttng-tools" | |
25 | TAPDIR="$WORKSPACE/tap" | |
26 | ||
27 | cd "$SRCDIR" | |
28 | ||
29 | # Try to fetch all tap logs. | |
30 | rsync -a --exclude 'test-suite.log' --include '*/' --include '*.log' --exclude='*' tests/ "$TAPDIR" | |
31 | ||
32 | # TAP plugin is having a hard time with .yml files. | |
33 | find "$TAPDIR" -name "meta.yml" -exec rm -f {} \; | |
34 | ||
35 | # EOF |