[linux] Use OSMesa when running Node tests

This commit is contained in:
Bruno de Oliveira Abinader
2016-11-04 02:27:28 +02:00
parent c5c3145b9a
commit 48a082a91b
4 changed files with 19 additions and 19 deletions

View File

@@ -38,7 +38,7 @@ mapbox_time "touch_package_json" \
touch package.json
# Start the mock X server
if [ -f /etc/init.d/xvfb ] && [ -z "${WITH_OSMESA}" ]; then
if [ -f /etc/init.d/xvfb ] && [ ! -z "${RUN_XVFB}" ]; then
mapbox_time "start_xvfb" \
sh -e /etc/init.d/xvfb start
sleep 2 # sometimes, xvfb takes some time to start up