mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-20 04:23: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}<"
|
die "No source binary flag is active and should have returned >${EXPECTED_OUTPUT}<. Instead it returned >${OUTPUT}<"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local ARGS
|
|
||||||
ARGS=''
|
|
||||||
nvm_install_source() {
|
nvm_install_source() {
|
||||||
ARGS="$@"
|
>&2 echo 'source intentionally failed'
|
||||||
echo 'source installed'
|
return 1
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# binary fails, falls back to source if -b is not set
|
# binary fails, falls back to source if -b is not set
|
||||||
OUTPUT="$(nvm install 9.0.0 2>&1)"
|
OUTPUT="$(nvm install 9.0.0 2>&1)"
|
||||||
EXPECTED_OUTPUT="binary failed
|
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}<"
|
[ "${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