diff options
author | Denis Isidoro <denisidoro@users.noreply.github.com> | 2021-04-19 09:54:35 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 09:54:35 -0300 |
commit | 7a7f1a3311738799f7d6fda644a10dfd80496b25 (patch) | |
tree | a606ae5d27def49cbccdbdd9200454ed794988f3 /tests | |
parent | 90de292c1f5291058843a7e29ef66df4b95332b4 (diff) |
Refactor scripts (#527)
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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$' |