From 08ae01ddc52302802438b7f07ad32b04406d8711 Mon Sep 17 00:00:00 2001 From: Peter Newman Date: Wed, 2 Dec 2020 18:08:34 +0000 Subject: [PATCH] Try copying the file to ${RUNNER_TEMP} --- test/test.bats | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.bats b/test/test.bats index 38a8290..8eb5a17 100644 --- a/test/test.bats +++ b/test/test.bats @@ -15,12 +15,12 @@ EXAMPLE_MISSPELLING_COUNT=5 export RUNNER_TEMP="/foo/runner_temp" -# Simulate the Dockerfile COPY command -[ -d "/code/" ] || sudo mkdir /code/ -[ -f "/code/codespell-matcher.json" ] || sudo cp codespell-problem-matcher/codespell-matcher.json /code/ - # This function runs before every test function setup() { + # Simulate the Dockerfile COPY command + [ -d "${RUNNER_TEMP}/code/" ] || sudo mkdir ${RUNNER_TEMP}/code/ + [ -f "${RUNNER_TEMP}/code/codespell-matcher.json" ] || sudo cp codespell-problem-matcher/codespell-matcher.json ${RUNNER_TEMP}/code/ + # Set default input values export INPUT_CHECK_FILENAMES="" export INPUT_CHECK_HIDDEN=""