Closed Bug 468823 Opened 16 years ago Closed 16 years ago

Unittests should be run with DISPLAY=:2 on linux

Categories

(Release Engineering :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: catlee)

References

Details

Attachments

(1 file, 1 obsolete file)

Unittests often fail on linux if buildbot isn't started with DISPLAY=:2

The attached patch puts this in the environment so that buildbot can be started via ssh.

Bonus points: make sure Xvfb and metacity are running
Attachment #352304 - Flags: review?(bhearsum)
Comment on attachment 352304 [details] [diff] [review]
set DISPLAY=:2 in env.py

Why didn't we do this sooner? :)
Attachment #352304 - Flags: review?(bhearsum) → review+
Assignee: nobody → catlee
Priority: -- → P2
(In reply to comment #2)
> Created an attachment (id=352370) [details]
> check for Xvfb and metacity before running

Well, that didn't work at all :P

The following crontab entries seem to do the trick:
# Make sure Xvfb is running on :2
*/5 * * * *	ps -C Xvfb | grep -q Xvfb || exec Xvfb :2 -screen 0 1280x1024x24 &

# Make sure metacity is running on :2
*/5 * * * *	ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace &
Attachment #352370 - Attachment is obsolete: true
Blocks: 465868
Attachment #352304 - Flags: checked‑in+
Comment on attachment 352304 [details] [diff] [review]
set DISPLAY=:2 in env.py

Checking in env.py;
/cvsroot/mozilla/tools/buildbotcustom/env.py,v  <--  env.py
new revision: 1.10; previous revision: 1.9
done
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: