2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Set --logfile for all kyua invocations

When kyua is called without the --logfile command line option, the log
file is created at a default location which is derived from the HOME
environment variable.  On FreeBSD GitLab CI runners, /home is a
read-only directory and thus kyua invocations not using the --logfile
option fail when HOME is set to something beneath /home.  Set --logfile
to /dev/null for all kyua invocations whose logs are irrelevant in order
to prevent kyua failures caused by HOME being non-writable.
This commit is contained in:
Michał Kępień 2019-09-12 14:25:57 +02:00
parent 87018ce225
commit 1bffa602ba
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ stages:
when: on_failure
.kyua_report: &kyua_report_html |
kyua report-html \
kyua --logfile /dev/null report-html \
--force \
--results-file "$KYUA_RESULT" \
--results-filter "" \

View File

@ -13,7 +13,7 @@ then
${KYUA} -v parallelism="${TEST_PARALLEL_JOBS:-1}" --logfile kyua.log --loglevel debug test --results-file "${KYUA_RESULT:-NEW}"
status=$?
${KYUA} report --results-file "${KYUA_RESULT:-LATEST}"
${KYUA} --logfile /dev/null report --results-file "${KYUA_RESULT:-LATEST}"
if [ "${status}" -eq "0" ]
then