mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-19 12:03:43 +00:00
maybe revert
This commit is contained in:
parent
02f516532b
commit
e13f593074
0
test/installation_iojs/install from source
Executable file → Normal file
0
test/installation_iojs/install from source
Executable file → Normal 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}<"
|
||||
|
0
test/slow/nvm exec/Running 'nvm exec' with help should not parse
Executable file → Normal file
0
test/slow/nvm exec/Running 'nvm exec' with help should not parse
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user