Browse Source

[Tests] fix shebangs

Jordan Harband 9 years ago
parent
commit
91c77c6ba8
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 1
      test/fast/Listing versions/Running "nvm ls 0.0.2" should display only version 0.0.2.
  2. 1
      test/fast/Listing versions/Running "nvm ls foo" should return a nonzero exit code when not found
  3. 1
      test/fast/Listing versions/Running "nvm ls io" should return NA
  4. 1
      test/fast/Listing versions/Running "nvm ls node_" should return a nonzero exit code when not found
  5. 1
      test/fast/Listing versions/Running "nvm ls stable" and "nvm ls unstable" should return the appropriate implicit alias
  6. 1
      test/fast/Listing versions/Running "nvm ls system" should include "system" when appropriate
  7. 1
      test/fast/Listing versions/Running "nvm ls" should filter out "versions"
  8. 1
      test/fast/Listing versions/Running "nvm ls" should include "system" when appropriate
  9. 1
      test/fast/Listing versions/Running "nvm ls" should list versions in the "versions" directory
  10. 1
      test/fast/Listing versions/Running "nvm ls" with node-like versioning vx.x.x should only list a matched version

1
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 if [ $? -eq 0 ]; then
die '"nvm ls 0.0.2" contained v0.0.20' die '"nvm ls 0.0.2" contained v0.0.20'
fi fi

1
test/fast/Listing versions/Running "nvm ls foo" should return a nonzero exit code when not found

@ -4,4 +4,3 @@
nvm ls nonexistent_version nvm ls nonexistent_version
[ "$?" = "3" ] [ "$?" = "3" ]

1
test/fast/Listing versions/Running "nvm ls io" should return NA

@ -4,4 +4,3 @@
nvm ls io nvm ls io
[ "$?" = "3" ] [ "$?" = "3" ]

1
test/fast/Listing versions/Running "nvm ls node_" should return a nonzero exit code when not found

@ -4,4 +4,3 @@
nvm ls node_ nvm ls node_
[ "$?" = "3" ] [ "$?" = "3" ]

1
test/fast/Listing versions/Running "nvm ls stable" and "nvm ls unstable" should return the appropriate implicit alias

@ -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" || die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.2"
nvm ls stable | \grep v0.1.2 >/dev/null \ nvm ls stable | \grep v0.1.2 >/dev/null \
|| die "'nvm ls stable' did not contain v0.1.2" || die "'nvm ls stable' did not contain v0.1.2"

1
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_has_system_node() { return 1; }
nvm ls system | grep system 2>&1 > /dev/null nvm ls system | grep system 2>&1 > /dev/null
[ $? -ne 0 ] || die '"nvm ls system" contained "system" when system node is not present' [ $? -ne 0 ] || die '"nvm ls system" contained "system" when system node is not present'

1
test/fast/Listing versions/Running "nvm ls" should filter out "versions"

@ -8,4 +8,3 @@ mkdir -p ../../../versions/node
[ -z "$(nvm ls | \grep 'versions')" ] [ -z "$(nvm ls | \grep 'versions')" ]
# The result should contain only the appropriate version numbers. # The result should contain only the appropriate version numbers.

1
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_has_system_node() { return 1; }
nvm ls | grep system 2>&1 > /dev/null nvm ls | grep system 2>&1 > /dev/null
[ $? -ne 0 ] || die '"nvm ls" contained "system" when system node is not present' [ $? -ne 0 ] || die '"nvm ls" contained "system" when system node is not present'

1
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.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' nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory'

1
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.2 | grep v0.1.2 &&
nvm ls v0.1. | grep v0.1.2 && nvm ls v0.1. | grep v0.1.2 &&
nvm ls v0.1.1 | grep N/A nvm ls v0.1.1 | grep N/A

Loading…
Cancel
Save