Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/xvfb.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/xvfb.py')
-rw-r--r--devbot/xvfb.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/devbot/xvfb.py b/devbot/xvfb.py
index b650bf1..6549b9d 100644
--- a/devbot/xvfb.py
+++ b/devbot/xvfb.py
@@ -3,15 +3,9 @@ import subprocess
from devbot import utils
-_display_provider = None
-
-def set_display_provider(provider):
- global _display_provider
- _display_provider = provider
+xvfb_display = ":100"
def start():
- xvfb_display = _display_provider.find_free_display()
-
xvfb_proc = subprocess.Popen(args=["Xvfb", xvfb_display],
stdout=utils.devnull,
stderr=subprocess.STDOUT)
@@ -22,7 +16,7 @@ def start():
def stop(xvfb_proc, orig_display):
if orig_display:
- os.environ["DISPLAY"] = orig_display
+ os.environ["DISPLAY"] = xvfb_display
else:
del os.environ["DISPLAY"]