From 3b67b3b9bb268e7082a77022c9d6a0b263fa9a34 Mon Sep 17 00:00:00 2001 From: lukechilds Date: Sat, 13 Jun 2015 18:52:54 +0100 Subject: [PATCH] Use node instead of nvm run and check v8_use_snapshot in node rather than shell --- .../node/install from source without V8 snapshot for ARM | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/installation/node/install from source without V8 snapshot for ARM b/test/installation/node/install from source without V8 snapshot for ARM index a7a562c..9fd1c89 100755 --- a/test/installation/node/install from source without V8 snapshot for ARM +++ b/test/installation/node/install from source without V8 snapshot for ARM @@ -17,10 +17,12 @@ nvm_get_arch() { # Install from source nvm install -s $NVM_TEST_VERSION || die "'nvm install -s $NVM_TEST_VERSION' failed" +# Use new version +nvm use $NVM_TEST_VERSION + # Check Install [ -d ../../../$NVM_TEST_VERSION ] -nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION || "'nvm run $NVM_TEST_VERSION --version | grep $NVM_TEST_VERSION' failed" +node --version | grep $NVM_TEST_VERSION || "'node --version | grep $NVM_TEST_VERSION' failed" # Check V8 snapshot isn't compiled -nvm run $NVM_TEST_VERSION -p process.config | grep "v8_use_snapshot: false" || "'nvm run $NVM_TEST_VERSION -p process.config | grep \"v8_use_snapshot: false\"' failed" - +node -p "if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }" | grep "no-snapshot" || "'node -p \"if(! process.config.variables.v8_use_snapshot) { console.log('no-snapshot'); }\" | grep \"no-snapshot\"' failed" \ No newline at end of file