提交 20651fb6 编写于 作者: J Johannes Rieken

make xvfb an arg

上级 7ac05a0a
#!/bin/bash
xvfb-run ./test.sh "$@"
...@@ -29,9 +29,15 @@ test -d node_modules || ./scripts/npm.sh install ...@@ -29,9 +29,15 @@ test -d node_modules || ./scripts/npm.sh install
# Build # Build
test -d out || ./node_modules/.bin/gulp compile test -d out || ./node_modules/.bin/gulp compile
echo "code $CODE" echo "code $CODE"
# Unit Tests # Unit Tests
export VSCODE_DEV=1 export VSCODE_DEV=1
if [[ "$OSTYPE" == "darwin"* ]]; then
if [[ "$1" == "--xvfb" ]]; then
cd $ROOT ; \
xvfb-run "$CODE" test/electron/index.js "$@"
elif [[ "$OSTYPE" == "darwin"* ]]; then
cd $ROOT ; ulimit -n 4096 ; \ cd $ROOT ; ulimit -n 4096 ; \
"$CODE" \ "$CODE" \
test/electron/index.js "$@" test/electron/index.js "$@"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册