From 636c1dbe92217810127fb4ef5d56a88399a23bbb Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 21 May 2025 12:05:16 +0200 Subject: shell-test runner: explicitly set HOME ... to a value that is a non-existent directory. Too many tools try search for rc-files in the user's home directory. To make things worth, the shell as well as many tools take an unset HOME variable as instruction to look up the the user's home directory in the system configuration. While it is good practise to write tests in such a way that they explcitly do not depend on such machine-specific defaults, still be on the safe side by explictly setting HOME to a directory in the action directory we know our rules will no create. Co-authored-by: Paul Cristian Sarbu Co-authored-by: Sascha Roloff --- shell/test/runner | 1 + 1 file changed, 1 insertion(+) (limited to 'shell/test/runner') diff --git a/shell/test/runner b/shell/test/runner index 624610b..81669fb 100755 --- a/shell/test/runner +++ b/shell/test/runner @@ -22,6 +22,7 @@ echo "${RESULT}" > result echo UNKNOWN > time-start echo UNKNOWN > time-stop pwd > pwd +export HOME="$(pwd)/DO-NO-USE-HOME" mkdir scratch export TEST_TMPDIR=$(realpath scratch) -- cgit v1.2.3