Skip to content

Commit

Permalink
TO-DROP: let's intercept the log and store it in a file, just in case
Browse files Browse the repository at this point in the history
This log is in `t/` so that it is uploaded in case of failure.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Dec 19, 2023
1 parent 2254d44 commit 0ca9e30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ group () {
"$@" 2>&1
echo $? >exit.status
) |
tee -a t/"$1".log |
sed 's/^\(\([^ ]*\):\([0-9]*\):\([0-9]*:\) \)\(error\|warning\): /::\5 file=\2,line=\3::\1/'
res=$(cat exit.status)
rm exit.status
Expand Down Expand Up @@ -188,6 +189,7 @@ create_failed_test_artifacts () {
done

mkdir -p t/failed-test-artifacts
cp "t/*.log" t/failed-test-artifacts/ || : ignore failure

for test_exit in t/test-results/*.exit
do
Expand Down

0 comments on commit 0ca9e30

Please sign in to comment.