From 1bffa602babbc7e76f1ac786e5e35dd7a5d8109f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Thu, 12 Sep 2019 14:25:57 +0200 Subject: [PATCH] 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. --- .gitlab-ci.yml | 2 +- unit/unittest.sh.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e0e12bb59..e48d74a645 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 "" \ diff --git a/unit/unittest.sh.in b/unit/unittest.sh.in index c46e2fc40c..ab087e0dec 100755 --- a/unit/unittest.sh.in +++ b/unit/unittest.sh.in @@ -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