tfs: try to get a free xvfb server number

This commit is contained in:
Joao Moreno 2017-05-18 13:47:55 +02:00
parent 7da213f840
commit a226da41de

View file

@ -29,7 +29,7 @@ test -d node_modules || ./scripts/npm.sh install
# Unit Tests
if [[ "$1" == "--xvfb" ]]; then
cd $ROOT ; \
xvfb-run "$CODE" test/electron/index.js "$@"
xvfb-run -a "$CODE" test/electron/index.js "$@"
elif [[ "$OSTYPE" == "darwin"* ]]; then
cd $ROOT ; ulimit -n 4096 ; \
"$CODE" \