diff options
author | kylo252 <[email protected]> | 2021-11-02 17:03:21 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2021-11-02 17:03:21 +0100 |
commit | b04bb9b79864e846af8936d6cee6ced0dd0bf93e (patch) | |
tree | 1d4d0a40330f426b51b8d62409d23869887bf7dd /utils/bin/test_runner.sh | |
parent | 17648e5a07f8c4fe851b09f3037db58c73fe292f (diff) | |
parent | 32ca5afa4ad21f1a616cc30323c272191e7548c1 (diff) |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'utils/bin/test_runner.sh')
-rw-r--r-- | utils/bin/test_runner.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/utils/bin/test_runner.sh b/utils/bin/test_runner.sh index ee138345..6fc6858b 100644 --- a/utils/bin/test_runner.sh +++ b/utils/bin/test_runner.sh @@ -1,15 +1,17 @@ #!/usr/bin/env bash set -e -export LUNARVIM_CONFIG_DIR="${LUNARVIM_CONFIG_DIR:-"$HOME/.config/lvim"}" export LUNARVIM_RUNTIME_DIR="${LUNARVIM_RUNTIME_DIR:-"$HOME/.local/share/lunarvim"}" export LVIM_TEST_ENV=true -rm -f "$LUNARVIM_CONFIG_DIR/plugin/packer_compiled.lua" +# we should start with an empty configuration +TEST_BASE_DIR="$(mktemp -d)" + +export LUNARVIM_CONFIG_DIR="$TEST_BASE_DIR" +export LUNARVIM_CACHE_DIR="$TEST_BASE_DIR" lvim() { - # TODO: allow running with a minimal_init.lua nvim -u "$LUNARVIM_RUNTIME_DIR/lvim/tests/minimal_init.lua" --cmd "set runtimepath+=$LUNARVIM_RUNTIME_DIR/lvim" "$@" } @@ -18,3 +20,5 @@ if [ -n "$1" ]; then else lvim --headless -c "PlenaryBustedDirectory tests/ { minimal_init = './tests/minimal_init.lua' }" fi + +rm -rf "$TEST_BASE_DIR" |