tools: Fix copying contents of deps/npm
authorthefourtheye <thechargingvolcano@gmail.com>
Sun, 31 May 2015 17:18:18 +0000 (22:48 +0530)
committerRoman Reiss <me@silverwind.io>
Mon, 1 Jun 2015 05:19:36 +0000 (07:19 +0200)
This fixes a platform inconsistency between BSD and GNU `cp` where
`deps/npm` would be copied into a subdirectory of `test-npm` on Linux,
but not on OS X.

PR-URL: https://github.com/nodejs/io.js/pull/1853
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
tools/test-npm.sh

index 9e7f161..397df10 100755 (executable)
@@ -13,10 +13,9 @@ if [ -z $NODE_EXE ]; then
 fi
 
 rm -rf test-npm
-mkdir test-npm
 
 # make a copy of deps/npm to run the tests on
-cp -r deps/npm/ test-npm/
+cp -r deps/npm test-npm
 
 cd test-npm