Skip to content
Myr

[Tests] show `type` output for debugging

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 332f413 · Browse files · 1 file+12 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−3 removed

  • tests:+12 added−3 removed

1 file+12 added−3 removed

modified:test/install_script/nvm_reset+12 added-3 removed
3 unmodified lines
4 unset -f safe_type die cleanup5}6die () { echo $@ ; cleanup ; exit 1; }78NVM_ENV=testing . ../../install.sh98safe_type() {11 type "$1" > /dev/null 2>&19 type "$1"10}1112# precondition: the names should be unset13! safe_type nvm_do_install || die 'nvm_do_install is still available'14! safe_type nvm_has || die 'nvm_has is still available'15! safe_type nvm_download || die 'nvm_download is still available'16! safe_type install_nvm_as_script || die 'install_nvm_as_script is still available'17! safe_type install_nvm_from_git || die 'install_nvm_from_git is still available'18! safe_type nvm_reset || die 'nvm_reset is still available'19! safe_type nvm_detect_profile || die 'nvm_detect_profile is still available'2021NVM_ENV=testing . ../../install.sh2223# Check nvm_reset exists24safe_type nvm_reset || die 'nvm_reset is not available'2526# Apply nvm_reset
13 unmodified lines