Skip to content

Commit ea4ce92

Browse files
committed
ci: isolate the home directory for test execution
libgit2 can now isolate its home directory, and our test runner (by default) isolates the home directory. In our CI environment, we want to set up some pieces (like ssh configuration) in a fake homedir. Continue to do so and propagate that to clar.
1 parent ff67b5e commit ea4ce92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ BUILD_DIR=$(pwd)
1616
TMPDIR=${TMPDIR:-/tmp}
1717
USER=${USER:-$(whoami)}
1818

19+
HOME=`mktemp -d ${TMPDIR}/home.XXXXXXXX`
20+
export CLAR_HOMEDIR=${HOME}
21+
1922
SUCCESS=1
2023
CONTINUE_ON_FAILURE=0
2124

@@ -140,7 +143,6 @@ fi
140143

141144
if [ -z "$SKIP_SSH_TESTS" ]; then
142145
echo "Starting SSH server..."
143-
HOME=`mktemp -d ${TMPDIR}/home.XXXXXXXX`
144146
SSHD_DIR=`mktemp -d ${TMPDIR}/sshd.XXXXXXXX`
145147
git init --bare "${SSHD_DIR}/test.git" >/dev/null
146148
cat >"${SSHD_DIR}/sshd_config" <<-EOF

0 commit comments

Comments
 (0)