[Tests] Replace all dots with backslash dots

This commit is contained in:
Qiangjun Ran
2016-11-04 13:15:18 +08:00
committed by Jordan Harband
parent 2a2b8bdeb3
commit cadbbced20
167 changed files with 188 additions and 188 deletions

View File

@@ -4,8 +4,8 @@ die () { echo $@ ; exit 1; }
echo '0.10.1' > ../../alias/default || die 'creation of default alias failed'
. ../../nvm.sh || die 'sourcing returned nonzero exit code'
. ../common.sh
\. ../../nvm.sh || die 'sourcing returned nonzero exit code'
\. ../common.sh
NVM_LS_CURRENT="$(nvm ls current | strip_colors | \grep -o v0.10.1)"
[ "_$NVM_LS_CURRENT" = '_v0.10.1' ] || die "'nvm ls current' did not return '-> v0.10.1', got '$NVM_LS_CURRENT'"

View File

@@ -12,7 +12,7 @@ fi
echo '0.10.2' > ../../.nvmrc || die 'creation of .nvmrc failed'
. ../../nvm.sh --install
\. ../../nvm.sh --install
EXIT_CODE="$(echo $?)"
echo 'sourcing complete.'

View File

@@ -1,5 +1,5 @@
#!/bin/sh
. ../common.sh
\. ../common.sh
die () { echo $@ ; exit 1; }
supports_source_options () {
@@ -15,7 +15,7 @@ echo '0.10.2' > ../../alias/default || die 'creation of default alias failed'
echo 'sourcing nvm with --install...'
. ../../nvm.sh --install
\. ../../nvm.sh --install
EXIT_CODE="$(echo $?)"
echo 'sourcing complete.'

View File

@@ -10,7 +10,7 @@ if ! supports_source_options; then
exit 0;
fi
. ../../nvm.sh
\. ../../nvm.sh
nvm install 4.1.0 || die 'install of v4.1.0 failed'
nvm_version 4.1.0 >/dev/null 2>&1 || die "v4.1.0 not installed: $(nvm ls)"
nvm deactivate || die 'nvm deactivate failed'
@@ -20,7 +20,7 @@ NVM_CURRENT="$(nvm current)"
nvm unload || die 'nvm unload failed'
. ../../nvm.sh --no-use
\. ../../nvm.sh --no-use
EXIT_CODE="$(echo $?)"
echo 'sourcing complete.'

View File

@@ -8,4 +8,4 @@ nvm_alias default && die '"nvm_alias default" did not fail'
set -e # necessary to fail internally with a nonzero code
. ../../nvm.sh || die 'sourcing returned nonzero exit code'
\. ../../nvm.sh || die 'sourcing returned nonzero exit code'

View File

@@ -7,7 +7,7 @@ rm -rf ../../v0.10.7
rm -rf ../../v0.9.7
rm -rf ../../v0.9.12
. ../../nvm.sh
\. ../../nvm.sh
nvm install 0.10.1 || echo >&2 'nvm install 0.10.1 failed'
nvm unalias default || 'removing default alias failed'
nvm unload || echo >&2 'nvm unload failed'