From 91c77c6ba8318af451cd7272fa55d2959f4fd34b Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 27 Apr 2016 17:34:53 -0700 Subject: [PATCH] [Tests] fix shebangs --- ...ich foo\" should return a nonzero exit code when not found" | 2 +- ...unning \"nvm ls 0.0.2\" should display only version 0.0.2." | 1 - ... ls foo\" should return a nonzero exit code when not found" | 3 +-- .../Listing versions/Running \"nvm ls io\" should return NA" | 3 +-- ...s node_\" should return a nonzero exit code when not found" | 3 +-- ...ls unstable\" should return the appropriate implicit alias" | 3 +-- ...nvm ls system\" should include \"system\" when appropriate" | 1 - .../Running \"nvm ls\" should filter out \"versions\"" | 1 - ...ning \"nvm ls\" should include \"system\" when appropriate" | 1 - ...vm ls\" should list versions in the \"versions\" directory" | 1 - ...-like versioning vx.x.x should only list a matched version" | 1 - 11 files changed, 5 insertions(+), 15 deletions(-) diff --git "a/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" "b/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" index 4c4a301..0c1e30b 100755 --- "a/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" +++ "b/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" @@ -1,4 +1,4 @@ - #!/bin/sh +#!/bin/sh . ../../../nvm.sh diff --git "a/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." "b/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." index c2b7a63..45a2d1a 100755 --- "a/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." +++ "b/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." @@ -18,4 +18,3 @@ nvm ls 0.0.2 | grep 'v0.0.20' > /dev/null if [ $? -eq 0 ]; then die '"nvm ls 0.0.2" contained v0.0.20' fi - diff --git "a/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" "b/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" index d3f6974..19e0f96 100755 --- "a/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" +++ "b/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" @@ -1,7 +1,6 @@ - #!/bin/sh +#!/bin/sh . ../../../nvm.sh nvm ls nonexistent_version [ "$?" = "3" ] - diff --git "a/test/fast/Listing versions/Running \"nvm ls io\" should return NA" "b/test/fast/Listing versions/Running \"nvm ls io\" should return NA" index ddd1123..2c61b66 100755 --- "a/test/fast/Listing versions/Running \"nvm ls io\" should return NA" +++ "b/test/fast/Listing versions/Running \"nvm ls io\" should return NA" @@ -1,7 +1,6 @@ - #!/bin/sh +#!/bin/sh . ../../../nvm.sh nvm ls io [ "$?" = "3" ] - diff --git "a/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" "b/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" index 2d6b012..b4ad7a2 100755 --- "a/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" +++ "b/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" @@ -1,7 +1,6 @@ - #!/bin/sh +#!/bin/sh . ../../../nvm.sh nvm ls node_ [ "$?" = "3" ] - diff --git "a/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" "b/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" index a5ab151..79051bd 100755 --- "a/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" +++ "b/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" @@ -1,4 +1,4 @@ - #!/bin/sh +#!/bin/sh . ../../../nvm.sh @@ -26,4 +26,3 @@ nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \ || die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.2" nvm ls stable | \grep v0.1.2 >/dev/null \ || die "'nvm ls stable' did not contain v0.1.2" - 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 f1e5ef6..d24cb3c 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" @@ -18,4 +18,3 @@ nvm ls system | grep system 2>&1 > /dev/null nvm_has_system_node() { return 1; } nvm ls system | grep system 2>&1 > /dev/null [ $? -ne 0 ] || die '"nvm ls system" contained "system" when system node is not present' - 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 c4d61bd..d63066d 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\"" @@ -8,4 +8,3 @@ mkdir -p ../../../versions/node [ -z "$(nvm ls | \grep 'versions')" ] # The result should contain only the appropriate version numbers. - diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" "b/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" index 9afd40a..e8554f0 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" +++ "b/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" @@ -18,4 +18,3 @@ nvm ls | grep system 2>&1 > /dev/null nvm_has_system_node() { return 1; } nvm ls | grep system 2>&1 > /dev/null [ $? -ne 0 ] || die '"nvm ls" contained "system" when system node is not present' - diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" "b/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" index 8368b1e..488e991 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" +++ "b/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" @@ -9,4 +9,3 @@ mkdir ../../../v0.1.3 nvm ls 0.12 | grep v0.12.1 || die '"nvm ls" did not list a version in the versions/ directory' nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory' - diff --git "a/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" "b/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" index 43c77d8..eeebea5 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" +++ "b/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" @@ -8,4 +8,3 @@ nvm ls v0.1 | grep v0.1.2 && nvm ls v0.1.2 | grep v0.1.2 && nvm ls v0.1. | grep v0.1.2 && nvm ls v0.1.1 | grep N/A -