Skip to content

Commit

Permalink
fix test compat in busybox
Browse files Browse the repository at this point in the history
  • Loading branch information
adsr committed May 20, 2023
1 parent 929dbf3 commit 27881aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/func/test_browse.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env bash

# skip if tree is not available
if ! command -v tree &>/dev/null; then
# skip if tree is not available
skip='tree not in PATH'
source 'test.sh'
exit 0
elif ! tree --help | grep -q charset; then
skip='tree version looks incorrect'
source 'test.sh'
exit 0
fi

# make tmpdir and delete at exit
Expand Down
2 changes: 1 addition & 1 deletion tests/func/test_indent_outdent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ source 'test.sh'
macro='M-o a 0 enter f o r space { enter i = 1 enter } enter'
extra_opts=(-i 1)
declare -A expected
expected[auto_indent_1]='^for {$'
expected[auto_indent_1]='^for \{$'
expected[auto_indent_2]='^'$'\t''i=1$'
expected[auto_indent_3]='^}$'
source 'test.sh'

0 comments on commit 27881aa

Please sign in to comment.