Skip to content

Commit

Permalink
[Tests] avoid accidental command execution in test failure message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 18, 2016
1 parent ecbd7d4 commit b2c5616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/slow/nvm exec/Running "nvm exec 0.x" should work
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ TEST_STRING="foo bar"

nvm use 1.0.0 && [ "$(node --version)" = "v1.0.0" ] || die "\`nvm use\` failed!"

[ "$(nvm exec 0.10 npm --version | tail -1)" = "$NPM_VERSION_TEN" ] || die "`nvm exec` failed to run with the correct version"
[ "$(nvm exec 0.10 npm --version | tail -1)" = "$NPM_VERSION_TEN" ] || die "\`nvm exec\` failed to run with the correct version"

[ "$(nvm exec 0.10 bash -c "printf '$TEST_STRING'" | tail -1)" = "$TEST_STRING" ] || die "`nvm exec` failed to run with the command include white-spaces"
[ "$(nvm exec 0.10 bash -c "printf '$TEST_STRING'" | tail -1)" = "$TEST_STRING" ] || die "\`nvm exec\` failed to run with a command including whitespace"

0 comments on commit b2c5616

Please sign in to comment.