Skip to content

Commit

Permalink
test: Use ${PWD} instead of $(pwd)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Sep 9, 2021
1 parent 3cd5104 commit 449b371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/plugins/base.plugin.bats
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ load ../../plugins/available/base.plugin
mkcd "${dir_name}"
assert_success
assert_dir_exist "${BASH_IT_ROOT}/${dir_name}"
assert_equal $(pwd) "${BASH_IT_ROOT}/${dir_name}"
assert_equal "${PWD}" "${BASH_IT_ROOT}/${dir_name}"
}

@test 'plugins base: lsgrep()' {
Expand Down
2 changes: 1 addition & 1 deletion test/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git submodule init && git submodule update

if [ -z "${BASH_IT}" ]; then
declare BASH_IT
BASH_IT=$(cd ${test_directory} && dirname "$(pwd)")
BASH_IT="$(cd "${test_directory}" && dirname "${PWD}")"
export BASH_IT
fi

Expand Down

0 comments on commit 449b371

Please sign in to comment.