From 15b3e7b6a8a9bdfb56b24dbac1dc91d995d56957 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 16 Sep 2014 08:59:00 -0700 Subject: [PATCH] Removing unnecessary cleanup in "Listing Versions" tests. --- ...m ls system\" should include \"system\" when appropriate" | 3 +-- .../Running \"nvm ls\" should filter out \"versions\"" | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git "a/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" "b/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" index 3acaf3f..f1e5ef6 100755 --- "a/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" +++ "b/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" @@ -1,7 +1,6 @@ #!/bin/sh -cleanup () { unset -f nvm_has_system_node; } -die () { cleanup ; echo $@ ; exit 1; } +die () { echo $@ ; exit 1; } . ../../../nvm.sh diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" "b/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" index c9858df..0652c6b 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" +++ "b/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" @@ -2,13 +2,10 @@ mkdir ../../../v0.1.3 mkdir ../../../v0.2.3 +mkdir ../../../versions . ../../../nvm.sh -mkdir ../../../versions - [ -z "$(nvm ls | \grep 'versions')" ] # The result should contain only the appropriate version numbers. -rmdir ../../../versions -