test: Fix meson build with xvfb disabled.

Fixes #678

Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Eric Anholt 2019-04-04 16:26:26 -07:00
parent 8ab80fd505
commit 0a005c4fe4

View File

@ -36,14 +36,15 @@ rendercheck_tests = [
]
rendercheck = find_program('rendercheck', required:false)
xvfb_args = [
xvfb_server.full_path(),
'-screen',
'scrn',
'1280x1024x24',
]
if get_option('xvfb')
xvfb_args = [
xvfb_server.full_path(),
'-screen',
'scrn',
'1280x1024x24',
]
test('XTS',
find_program('scripts/xvfb-piglit.sh'),
env: piglit_env,