Skip to content

Commit

Permalink
Weston is added to the build dependencies, and is now run by xvfb.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-voodoo authored and msisov committed Jan 21, 2019
1 parent 7c53993 commit f4c0623
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/install-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ dev_list="\
ruby
subversion
uuid-dev
weston
wdiff
x11-utils
xcompmgr
Expand Down
6 changes: 6 additions & 0 deletions testing/xvfb.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,19 @@ def run_executable(cmd, env, stdoutfile=None):
xcompmgr_proc = subprocess.Popen('xcompmgr', stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, env=env)

# Tests may need a Wayland server.
weston_proc = subprocess.Popen(('weston', '--backend=x11-backend.so'),
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, env=env)

return test_env.run_executable(cmd, env, stdoutfile)
except OSError as e:
print >> sys.stderr, 'Failed to start Xvfb or Openbox: %s' % str(e)
return 1
finally:
kill(openbox_proc)
kill(xcompmgr_proc)
kill(weston_proc)
else:
env['_CHROMIUM_INSIDE_XVFB'] = '1'
if stdoutfile:
Expand Down

0 comments on commit f4c0623

Please sign in to comment.