summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDenis Isidoro <denisidoro@users.noreply.github.com>2021-04-19 09:54:35 -0300
committerGitHub <noreply@github.com>2021-04-19 09:54:35 -0300
commit7a7f1a3311738799f7d6fda644a10dfd80496b25 (patch)
treea606ae5d27def49cbccdbdd9200454ed794988f3 /tests
parent90de292c1f5291058843a7e29ef66df4b95332b4 (diff)
Refactor scripts (#527)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/run b/tests/run
index b582b71..3ab3819 100755
--- a/tests/run
+++ b/tests/run
@@ -91,27 +91,27 @@ _integration() {
rm "$log_file" 2>/dev/null || true
mv "$cheats_path" "$bak_cheats_path" 2>/dev/null || true
- echoerr "Starting sessions..."
+ log::note "Starting sessions..."
tmux new-session -d -s ci "export NAVI_TEST_PATH='${cheats_path}'; ${NAVI_HOME}/tests/run _navi |& tee '${log_file}'"
sleep 5
_assert_tmux "$log_file"
- echoerr "Downloading default cheatsheets..."
+ log::note "Downloading default cheatsheets..."
tmux send-key -t ci "download default"; tmux send-key -t ci "Enter"
sleep 1
_assert_tmux "$log_file"
- echoerr "Confirming import..."
+ log::note "Confirming import..."
tmux send-key -t ci "y"; tmux send-key -t ci "Enter"
sleep 6
_assert_tmux "$log_file"
- echoerr "Running snippet..."
+ log::note "Running snippet..."
tmux send-key -t ci "pwd"
sleep 1
tmux send-key -t ci "Enter"
- echoerr "Checking paths..."
+ log::note "Checking paths..."
sleep 2
local -r downloaded_path="$(cat "$log_file" | grep 'They are now located at' | sed 's/They are now located at //')"
ls "$downloaded_path" | grep -q '^pkg_mgr__brew.cheat$'