I use jenkins for remote testing. I create environmental variable and export display to linux machine running this cod in job configure
Xvfb :99 -ac &
export DISPLAY=:99
Now I want to change screen resolution there. I have try xrandr -s 1280x800
but it doesn't work. How I can resolve this problem?
Xvfb :99 -ac -screen 0, 1680x1050x24 & export DISPLAY=:99
解决问题
添加Jenkins插件的更好解决方案https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.