Only start xvfb when tests will be run

This commit is contained in:
Kevin Sawicki 2017-07-21 14:46:22 -07:00 committed by Aleksei Kuzmin
parent 1f71a2e94c
commit dc6e451010

View file

@ -60,7 +60,7 @@ def main():
deps += LINUX_DEPS_NO_ARM
execute(['sudo', 'apt-get', 'install'] + deps)
if PLATFORM == 'linux':
if PLATFORM == 'linux' and target_arch == 'x64':
os.environ['DISPLAY'] = ':99.0'
execute(['sh', '-e', '/etc/init.d/xvfb', 'start'])