Skip to content

Commit

Permalink
tests: use cache for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Jun 14, 2024
1 parent 0151f50 commit 4f23264
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ set -euo pipefail

cd "$(dirname "$0")"

pwd=$(pwd)
export TF_PLUGIN_CACHE_DIR=$pwd/tmp/cache
mkdir -p $TF_PLUGIN_CACHE_DIR

status=0

for t in [0-9]*.sh; do
Expand All @@ -16,4 +20,6 @@ for t in [0-9]*.sh; do
fi
done

rm -rf $TF_PLUGIN_CACHE_DIR

exit $status

0 comments on commit 4f23264

Please sign in to comment.