test: Run weak install with --unsafe-perm

This way it doesn't die when running as root.
This commit is contained in:
isaacs 2012-05-04 12:51:37 -07:00
Родитель aaf0453b7c
Коммит 711ecdd54f
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -44,7 +44,8 @@ test-valgrind: all
node_modules/weak:
@if [ ! -f node ]; then make all; fi
@if [ ! -d node_modules ]; then mkdir -p node_modules; fi
./node deps/npm/bin/npm-cli.js install weak --prefix="$(shell pwd)"
./node deps/npm/bin/npm-cli.js install weak \
--prefix="$(shell pwd)" --unsafe-perm # go ahead and run as root.
test-gc: all node_modules/weak
$(PYTHON) tools/test.py --mode=release gc