Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-01-07 04:35:34 +0300
committerisaacs <i@izs.me>2011-01-07 04:45:42 +0300
commit7826e2c091f53a107bf52fb70d2174294ce162c7 (patch)
treecba52eb7b60216268e9f0cb185f96c13934bafce /test
parentd64bdba1e89f251fe8ce4617b02e389a7bcb2403 (diff)
Better cleanup in test
Diffstat (limited to 'test')
-rwxr-xr-xtest/run.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/run.sh b/test/run.sh
index 7eaaf7fbf..b6910f96c 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -93,7 +93,10 @@ done
NPMPKG="$(dirname -- "$(dirname -- "$SELF_PATH")")"
NPMCLI="$NPMPKG/cli.js"
TESTDIR="$NPMPKG/test/"
-TMP=$(mktemp -dt npm.XXXXXX)
+TMP=${TMPDIR:-/tmp}
+rm -rf $TMP/npm*
+TMP=$TMP/npm-test-$$
+echo "Testing in $TMP ..."
ROOTDIR="$TMP/root"
BINDIR="$TMP/bin"
MANDIR="$TMP/man"