]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set --logfile for all kyua invocations
authorMichał Kępień <michal@isc.org>
Thu, 12 Sep 2019 12:25:57 +0000 (14:25 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 12 Sep 2019 12:25:57 +0000 (14:25 +0200)
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.

.gitlab-ci.yml
unit/unittest.sh.in

index 5e0e12bb5954357091ae7621b621e94ab184ccf7..e48d74a6459fa076d3ce2b0757eca3016259a6d7 100644 (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 "" \
index c46e2fc40cc79f879314d5de6d740b08b2491196..ab087e0decbd46be50a59bafa96b84e6613b2f9a 100755 (executable)
@@ -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