From 650b069bb83c0d704cb48e2a59468a021d7cdcd8 Mon Sep 17 00:00:00 2001 From: "Stiliyan Tonev (Bark)" Date: Tue, 30 Jul 2024 11:56:35 +0300 Subject: [PATCH] Seems changes done in docker do not persist, had to reapply them --- ...'nvm-exec' should display required node version | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/test/slow/Running 'nvm-exec' should display required node version b/test/slow/Running 'nvm-exec' should display required node version index 53b149b7f2..8c91cf7e2a 100644 --- a/test/slow/Running 'nvm-exec' should display required node version +++ b/test/slow/Running 'nvm-exec' should display required node version @@ -1,8 +1,7 @@ -#!/bin/sh +#!/bin/bash -set -ex -die () { echo "$@" ; exit 1; } -\. ../../../nvm.sh +set -x +\. ../../nvm.sh NVM_TEST_VERSION=v9 @@ -12,5 +11,10 @@ NVM_TEST_VERSION=v9 # Write it to nvmrc echo "$NVM_TEST_VERSION" > .nvmrc +output="$(../../nvm-exec 2>&1)"; +expected='N/A: version "v9" is not yet installed. + +You need to run `nvm install v9` to install and use it. +No NODE_VERSION provided; no .nvmrc file found'; # Skip install, we want to test the error message -nvm-exec +diff <(echo "$expected") <(echo "$output")