diff options
author | isaacs <i@izs.me> | 2011-01-07 04:35:34 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-01-07 04:45:42 +0300 |
commit | 7826e2c091f53a107bf52fb70d2174294ce162c7 (patch) | |
tree | cba52eb7b60216268e9f0cb185f96c13934bafce /test | |
parent | d64bdba1e89f251fe8ce4617b02e389a7bcb2403 (diff) |
Better cleanup in test
Diffstat (limited to 'test')
-rwxr-xr-x | test/run.sh | 5 |
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" |