From 332ae1afcbaa655b3a3c78ad3cc708b2c08b5bed Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Sat, 22 Feb 2014 12:15:40 +1000 Subject: [PATCH] use a more portable release in install tests The tests for nvm install currently install v0.8.6, which doesn't build on FreeBSD due to Linuxisms. Switch to a more recent version that does work. --- test/slow/install from binary | 10 ++++++---- test/slow/install from source | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/test/slow/install from binary b/test/slow/install from binary index c22e0d8..a1d35bc 100755 --- a/test/slow/install from binary +++ b/test/slow/install from binary @@ -3,12 +3,14 @@ set -e . ../../nvm.sh +VERSION=v0.10.26 + # Remove the stuff we're clobbering. -[ -e ../../v0.8.6 ] && rm -R ../../v0.8.6 +[ -e ../../$VERSION ] && rm -R ../../$VERSION # Install from binary -nvm install 0.8.6 +nvm install $VERSION # Check -[ -d ../../v0.8.6 ] -nvm run v0.8.6 --version | grep v0.8.6 +[ -d ../../$VERSION ] +nvm run $VERSION --version | grep $VERSION diff --git a/test/slow/install from source b/test/slow/install from source index d124b27..d03724c 100755 --- a/test/slow/install from source +++ b/test/slow/install from source @@ -3,12 +3,14 @@ set -e . ../../nvm.sh +VERSION=v0.10.26 + # Remove the stuff we're clobbering. -[ -e ../../v0.8.6 ] && rm -R ../../v0.8.6 +[ -e ../../$VERSION ] && rm -R ../../$VERSION # Install from source -nvm install -s 0.8.6 +nvm install -s $VERSION # Check -[ -d ../../v0.8.6 ] -nvm run v0.8.6 --version | grep v0.8.6 +[ -d ../../$VERSION ] +nvm run $VERSION --version | grep $VERSION