/
Undeadguy
/
synapse
Обзор
Документация
Войти
/
Undeadguy
/
synapse
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.ci/scripts/gotestfmt
21 строка
792 B
Richard van der Hoff
Print complement failure results last (#13639)
28 авг 2022, 23:05
Не верифицирован
28 авг 2022, 23:05
4f6de33
Код
Авторство
О чём код?
#!/bin/bash # # wraps `gotestfmt`, hiding output from successful packages unless # all tests passed. set -o pipefail set -e # tee the test results to a log, whilst also piping them into gotestfmt, # telling it to hide successful results, so that we can clearly see # unsuccessful results. tee complement.log | gotestfmt -hide successful-packages # gotestfmt will exit non-zero if there were any failures, so if we got to this # point, we must have had a successful result. echo "All tests successful; showing all test results" # Pipe the test results back through gotestfmt, showing all results. # The log file consists of JSON lines giving the test results, interspersed # with regular stdout lines (including reports of downloaded packages). grep '^{"Time":' complement.log | gotestfmt