During my last adventures with Jenkins y suffered into a new problem trying to running my gtester’s test battery.
[exec] TEST: tests/stkmngtest... (pid=13754)
[exec] Gtk-WARNING **: cannot open display:
[exec] FAIL: tests/stkmngtest
that makes my test suite were aborted and also makes Jenkins useless, and useless things are my competitors because the only useless thing allowed at home is me .
The basic problem is that there no are a XOrg session running, first I change runlevel to 5 and expect see test runing a big FAIL was the result.
after reading a bit of literature I discover a thing called Xvfb
for install follow these steps
yum install Xvfb
yum install mesa-dri-drivers
the next step was try to install Xvfb plugin in jenkins but i doesn’t work it give these exception
I found a quick and dirty solution that is put a xvfb-run call in commands that need a xserver like this
<target name=”runtest” description=”run glib test”>
the solution for solve these problem is configure Jenkins plugin BIG BIG BIG THANKS TO Tomasz Wysocki, he show me the missing configuration options.
Here for global settings
And here for project settings