Skip to content
Myr

[Tests] clean up .nvmrc after nvm-exec test

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 c451e7a · Browse files · 1 file+5 added−1 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+5 added−1 removed

  • tests:+5 added−1 removed

1 file+5 added−1 removed

modified:test/fast/Running 'nvm-exec' should display required node version+5 added-1 removed
2 unmodified lines
3set -x4: nvm.sh5\. ../../nvm.sh67die () { echo "$@" ; rm .nvmrc ; exit 1; }7cleanup() { rm -f .nvmrc; }89die () { echo "$@" ; cleanup ; exit 1; }1011NVM_TEST_VERSION=v0.421213# Write it to nvmrc14echo "$NVM_TEST_VERSION" > .nvmrc
5 unmodified lines
20No NODE_VERSION provided; no .nvmrc file found";2122# Skip install, we want to test the error message23[ "${EXPECTED}" = "${OUTPUT}" ] || die "expected >${EXPECTED}<, got >${OUTPUT}<"2425cleanup