Skip to content

Commit

Permalink
tools: use absolute paths in test-npm
Browse files Browse the repository at this point in the history
Updated test-npm to use absolute paths for tmp/cache/prefix

PR-URL: nodejs#3309
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
  • Loading branch information
iarna authored and Fishrock123 committed Oct 22, 2015
1 parent 494227b commit f5445db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/test-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ cd test-npm
rm -rf npm-cache npm-tmp npm-prefix
mkdir npm-cache npm-tmp npm-prefix

# set some npm env varibles to point to our new temporary folders
export npm_config_cache="npm-cache"
export npm_config_prefix="npm-prefix"
export npm_config_tmp="npm-tmp"
# set some npm env variables to point to our new temporary folders
export npm_config_cache="$(pwd)/npm-cache"
export npm_config_prefix="$(pwd)/npm-prefix"
export npm_config_tmp="$(pwd)/npm-tmp"

# install npm devDependencies and run npm's tests

Expand Down

0 comments on commit f5445db

Please sign in to comment.