[Tests] use -ex option during tests when possible

Relates to #1130
This commit is contained in:
Jordan Harband
2016-07-07 00:00:59 -07:00
parent 186eb8838d
commit ecbd7d4572
21 changed files with 115 additions and 40 deletions

View File

@@ -1,11 +1,13 @@
#!/usr/bin/env bash
#!/bin/sh
set -ex
export NVM_SYMLINK_CURRENT=true
. ../../nvm.sh
rm -rf "${NVM_DIR}/v0.10.29"
mkdir "${NVM_DIR}/v0.10.29"
nvm use 0.10.29
nvm use --delete-prefix 0.10.29
rmdir "${NVM_DIR}/v0.10.29"
if [ ! -L "${NVM_DIR}/current" ];then
@@ -22,7 +24,7 @@ fi
rm -rf "${NVM_DIR}/v0.11.13"
mkdir "${NVM_DIR}/v0.11.13"
nvm use 0.11.13
nvm use --delete-prefix 0.11.13
rmdir "${NVM_DIR}/v0.11.13"
newLink="$(readlink "${NVM_DIR}/current")"