Skip to content

Commit 343ed7b

Browse files
authored
Merge pull request #466 from tfutils/fix/456-457-test-bugs
Fix #456, Fix #457: Replace undefined error_and_die with error_and_proceed in test_uninstall.sh, fix missing quotes on TFENV_ROOT check in test_common.sh
2 parents d3be113 + e444e33 commit 343ed7b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/test_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [ -z "${TFENV_ROOT:-""}" ]; then
3030
};
3131

3232
TFENV_ROOT="$(cd "$(dirname "$(readlink_f "${0}")")/.." && pwd)";
33-
[ -n ${TFENV_ROOT} ] || early_death "Failed to 'cd \"\$(dirname \"\$(readlink_f \"${0}\")\")/..\" && pwd' while trying to determine TFENV_ROOT";
33+
[ -n "${TFENV_ROOT}" ] || early_death "Failed to 'cd \"\$(dirname \"\$(readlink_f \"${0}\")\")/..\" && pwd' while trying to determine TFENV_ROOT";
3434
else
3535
TFENV_ROOT="${TFENV_ROOT%/}";
3636
fi;

test/test_uninstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ for ((test_num=0; test_num<${tests_count}; ++test_num )) ; do
4949
done;
5050

5151
echo "### Uninstall removes versions directory"
52-
cleanup || error_and_die "Cleanup failed?!"
52+
cleanup || error_and_proceed "Cleanup failed?!"
5353
(
5454
tfenv install 0.12.1 || exit 1
5555
tfenv install 0.12.2 || exit 1

0 commit comments

Comments
 (0)