test: Use `${PWD}` instead of `$(pwd)`

pull/1927/head
John D Pell 2021-09-05 17:35:05 -07:00
parent 5fc418e479
commit 8d1e802565
2 changed files with 2 additions and 2 deletions

View File

@ -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()' {

View File

@ -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