summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDenis Isidoro <denisidoro@users.noreply.github.com>2020-09-15 16:38:28 -0300
committerGitHub <noreply@github.com>2020-09-15 16:38:28 -0300
commit3fffac8a178e31e7029a0bd8aaeffcf4afbfc2e0 (patch)
tree26591bacabac554fcd498bf7632f9fb69ce9f9a1 /tests
parent58f85394f5daf3576b6f4173aac747c958616661 (diff)
Fix tests (#411)v2.12.0
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run b/tests/run
index e5274e9..7c5eb1f 100755
--- a/tests/run
+++ b/tests/run
@@ -4,11 +4,11 @@ export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)"
source "${NAVI_HOME}/tests/core.bash"
TEST_CHEAT_PATH="${NAVI_HOME}/tests/no_prompt_cheats"
+NAVI_EXE="${NAVI_HOME}/target/debug/navi"
_navi() {
stty sane || true
- local -r navi="./target/debug/navi"
- RUST_BACKTRACE=1 NAVI_PATH="${NAVI_TEST_PATH:-$TEST_CHEAT_PATH}" "$navi" "$@"
+ RUST_BACKTRACE=1 NAVI_PATH="${NAVI_TEST_PATH:-$TEST_CHEAT_PATH}" "$NAVI_EXE" "$@"
}
_navi_cases() {
@@ -64,7 +64,7 @@ _navi_cheatspath() {
_integration() {
local -r log_file="${NAVI_HOME}/target/ci.log"
- tmux new-session -d -s ci "export NAVI_TEST_PATH='$(navi info cheats-path)'; $0 _navi repo browse |& tee '${log_file}'"
+ tmux new-session -d -s ci "export NAVI_TEST_PATH='$($NAVI_EXE info cheats-path)'; $0 _navi repo browse |& tee '${log_file}'"
sleep 5
tmux send-key -t ci denisidoro/cheats; tmux send-key -t ci Enter
sleep 1