maybe revert

This commit is contained in:
Jordan Harband 2024-08-26 21:46:27 -07:00
parent 02f516532b
commit e13f593074
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
3 changed files with 5 additions and 8 deletions

0
test/installation_iojs/install from source Executable file → Normal file
View File

View File

@ -38,19 +38,16 @@ if [ "${OUTPUT#*"${EXPECTED_OUTPUT}"}" = "${OUTPUT}" ]; then
die "No source binary flag is active and should have returned >${EXPECTED_OUTPUT}<. Instead it returned >${OUTPUT}<"
fi
local ARGS
ARGS=''
nvm_install_source() {
ARGS="$@"
echo 'source installed'
return 0
>&2 echo 'source intentionally failed'
return 1
}
# binary fails, falls back to source if -b is not set
OUTPUT="$(nvm install 9.0.0 2>&1)"
EXPECTED_OUTPUT="binary failed
source installed"
Detected that you have 2 CPU core(s)
Number of CPU core(s) less than or equal to 2, running in single-threaded mode
source intentionally failed"
[ "${EXPECTED_OUTPUT}" = "${OUTPUT}" ] || die "expected >${EXPECTED_OUTPUT}<, got >${OUTPUT}<"
[ "${ARGS}" = "-b 9.0.0" ] || die "expected >-b 9.0.0<, got >${ARGS}<"

View File