diff options
author | opalmay <[email protected]> | 2023-02-17 17:28:24 +0200 |
---|---|---|
committer | opalmay <[email protected]> | 2023-02-24 17:18:10 +0200 |
commit | f67df8471cdc2c32697a536687b81446b6f89959 (patch) | |
tree | 52bd6843b6bed3052629f8a93a3e93f062470c60 /utils/ci/run_test.sh | |
parent | 6652533b34193ed6074a492491486a94c814025a (diff) |
fix: unit test
Diffstat (limited to 'utils/ci/run_test.sh')
-rw-r--r-- | utils/ci/run_test.sh | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/utils/ci/run_test.sh b/utils/ci/run_test.sh index 2b8e582a..8b7ebe71 100644 --- a/utils/ci/run_test.sh +++ b/utils/ci/run_test.sh @@ -1,21 +1,15 @@ #!/usr/bin/env bash set -e -export LUNARVIM_DATA_DIR="${LUNARVIM_DATA_DIR:-"$HOME/.local/share/lvim"}" +export NVIM_APPNAME="${NVIM_APPNAME:-"lvim"}" + +export LUNARVIM_DATA_DIR="${LUNARVIM_DATA_DIR:-"$HOME/.local/share/$NVIM_APPNAME"}" export LUNARVIM_BASE_DIR="$LUNARVIM_DATA_DIR/core" export LVIM_TEST_ENV=true -# we should start with an empty configuration -LUNARVIM_CONFIG_DIR="$(mktemp -d)" -LUNARVIM_CACHE_DIR="$(mktemp -d)" - -export LUNARVIM_CONFIG_DIR LUNARVIM_CACHE_DIR - -printf "cache_dir: %s\nconfig_dir: %s\n" "$LUNARVIM_CACHE_DIR" "$LUNARVIM_CONFIG_DIR" - lvim() { - nvim -u "$LUNARVIM_BASE_DIR/tests/minimal_init.lua" --cmd "set runtimepath+=$LUNARVIM_BASE_DIR" "$@" + nvim -u "$LUNARVIM_BASE_DIR/tests/minimal_init.lua" "$@" } if [ -n "$1" ]; then |