Skip to content

Commit

Permalink
test: cd.bats: Do not swallow errors of shell invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
andsens committed Sep 6, 2020
1 parent c960618 commit 9eccd65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/suites/cd.bats
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ load ../helper
local dotfiles_dir=$HOMESICK/repos/dotfiles
cmd=". \"$HOMESHICK_FN_SRC_SH\" && $HOMESHICK_FN cd dotfiles && echo \$PWD"
local result
result=$( sh <<< "$cmd" 2>&1 )
result=$( sh <<< "$cmd" )
[ "$dotfiles_dir" = "$result" ]
}

Expand All @@ -63,7 +63,7 @@ load ../helper
local dotfiles_dir=$HOMESICK/repos/dotfiles
cmd=". \"$HOMESHICK_FN_SRC_SH\" && $HOMESHICK_FN cd dotfiles && echo \$PWD"
local result
result=$( dash <<< "$cmd" 2>&1 )
result=$( dash <<< "$cmd" )
[ "$dotfiles_dir" = "$result" ]
}

Expand Down Expand Up @@ -96,6 +96,6 @@ EOF
dotfiles_dir=$(cd "$HOMESICK/repos/dotfiles" && pwd -P)
cmd="source \"$HOMESHICK_FN_SRC_FISH\"; and $HOMESHICK_FN cd dotfiles; and pwd"
local result
result=$( fish <<< "$cmd" 2>&1 )
result=$( fish <<< "$cmd" )
[ "$dotfiles_dir" = "$result" ]
}

0 comments on commit 9eccd65

Please sign in to comment.