Skip to content

Commit

Permalink
Fix tests (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored Sep 15, 2020
1 parent 58f8539 commit 3fffac8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/run
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3fffac8

Please sign in to comment.