test/system: Use BATS_RUN_TMPDIR for image cache
Using the current working directory for cache is not a good solution since the test files may reside in a location that is unwritable (e.g., /usr/share). The `BATS_RUN_TMPDIR` variable should point to a location that is sure to be writeable from the test suite. https://github.com/containers/toolbox/pull/850
This commit is contained in:
parent
660b6970e9
commit
9820550c82
1 changed files with 1 additions and 2 deletions
|
@ -8,8 +8,7 @@ readonly TOOLBOX=${TOOLBOX:-toolbox}
|
|||
readonly SKOPEO=$(command -v skopeo)
|
||||
|
||||
# Helpful globals
|
||||
readonly PROJECT_DIR=${PWD}
|
||||
readonly IMAGE_CACHE_DIR="${PROJECT_DIR}/image-cache"
|
||||
readonly IMAGE_CACHE_DIR="${BATS_RUN_TMPDIR}/image-cache"
|
||||
|
||||
# Images
|
||||
declare -Ag IMAGES=([busybox]="docker.io/library/busybox" \
|
||||
|
|
Loading…
Reference in a new issue