Skip to content
Myr

[Tests] fix shebangs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent ec54c92 · Browse files · 11 files+5 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

11 files+5 added−15 removed

  • tests:+5 added−15 removed

11 files+5 added−15 removed

modified:test/fast/Listing paths/Running "nvm which foo" should return a nonzero exit code when not found+1 added-1 removed
1 #!/bin/sh1#!/bin/sh23. ../../../nvm.sh45nvm which nonexistent_version
1 unmodified line
modified:test/fast/Listing versions/Running "nvm ls 0.0.2" should display only version 0.0.2.-1 removed
16 unmodified lines
17nvm ls 0.0.2 | grep 'v0.0.20' > /dev/null18if [ $? -eq 0 ]; then19 die '"nvm ls 0.0.2" contained v0.0.20'20fi21
modified:test/fast/Listing versions/Running "nvm ls foo" should return a nonzero exit code when not found+1 added-2 removed
1 #!/bin/sh1#!/bin/sh23. ../../../nvm.sh45nvm ls nonexistent_version6[ "$?" = "3" ]7
modified:test/fast/Listing versions/Running "nvm ls io" should return NA+1 added-2 removed
1 #!/bin/sh1#!/bin/sh23. ../../../nvm.sh45nvm ls io6[ "$?" = "3" ]7
modified:test/fast/Listing versions/Running "nvm ls node_" should return a nonzero exit code when not found+1 added-2 removed
1 #!/bin/sh1#!/bin/sh23. ../../../nvm.sh45nvm ls node_6[ "$?" = "3" ]7
modified:test/fast/Listing versions/Running "nvm ls stable" and "nvm ls unstable" should return the appropriate implicit alias+1 added-2 removed
1 #!/bin/sh1#!/bin/sh23. ../../../nvm.sh45die () { echo $@ ; exit 1; }
19 unmodified lines
25nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \26 || die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.2"27nvm ls stable | \grep v0.1.2 >/dev/null \28 || die "'nvm ls stable' did not contain v0.1.2"29
modified:test/fast/Listing versions/Running "nvm ls system" should include "system" when appropriate-1 removed
16 unmodified lines
1718nvm_has_system_node() { return 1; }19nvm ls system | grep system 2>&1 > /dev/null20[ $? -ne 0 ] || die '"nvm ls system" contained "system" when system node is not present'21
modified:test/fast/Listing versions/Running "nvm ls" should filter out "versions"-1 removed
6 unmodified lines
7. ../../../nvm.sh89[ -z "$(nvm ls | \grep 'versions')" ]10# The result should contain only the appropriate version numbers.11
modified:test/fast/Listing versions/Running "nvm ls" should include "system" when appropriate-1 removed
16 unmodified lines
1718nvm_has_system_node() { return 1; }19nvm ls | grep system 2>&1 > /dev/null20[ $? -ne 0 ] || die '"nvm ls" contained "system" when system node is not present'21
modified:test/fast/Listing versions/Running "nvm ls" should list versions in the "versions" directory-1 removed
7 unmodified lines
8. ../../../nvm.sh910nvm ls 0.12 | grep v0.12.1 || die '"nvm ls" did not list a version in the versions/ directory'11nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory'12
modified:test/fast/Listing versions/Running "nvm ls" with node-like versioning vx.x.x should only list a matched version-1 removed
6 unmodified lines
7nvm ls v0.1 | grep v0.1.2 &&8nvm ls v0.1.2 | grep v0.1.2 &&9nvm ls v0.1. | grep v0.1.2 &&10nvm ls v0.1.1 | grep N/A11