[Checkins] SVN: gocept.selenium/trunk/ Some buildout optimizations, get rid of hard coded external IP for now, naming
Christian Theune
ct at gocept.com
Mon Mar 1 04:18:03 EST 2010
Log message for revision 109535:
Some buildout optimizations, get rid of hard coded external IP for now, naming
fix for layers.
Changed:
U gocept.selenium/trunk/plone.cfg
U gocept.selenium/trunk/src/gocept/selenium/base.py
U gocept.selenium/trunk/src/gocept/selenium/zope2/__init__.py
-=-
Modified: gocept.selenium/trunk/plone.cfg
===================================================================
--- gocept.selenium/trunk/plone.cfg 2010-03-01 08:32:26 UTC (rev 109534)
+++ gocept.selenium/trunk/plone.cfg 2010-03-01 09:18:03 UTC (rev 109535)
@@ -7,7 +7,8 @@
find-links = http://download.gocept.com/packages
[versions]
-zc.buildout =
+zc.buildout = 1.4.3
+zc.recipe.egg = 1.2.2
setuptools =
PILwoTK = 1.1.6.4
Modified: gocept.selenium/trunk/src/gocept/selenium/base.py
===================================================================
--- gocept.selenium/trunk/src/gocept/selenium/base.py 2010-03-01 08:32:26 UTC (rev 109534)
+++ gocept.selenium/trunk/src/gocept/selenium/base.py 2010-03-01 09:18:03 UTC (rev 109535)
@@ -15,7 +15,6 @@
import gocept.selenium.selenese
import selenium
-
class Layer(object):
# XXX make configurable:
@@ -33,6 +32,7 @@
def __init__(self, *bases):
self.__bases__ = bases
+ self.__name__ = '.'.join(x.__name__ for x in bases) + '.selenium'
def setUp(self):
self.selenium = selenium.selenium(
Modified: gocept.selenium/trunk/src/gocept/selenium/zope2/__init__.py
===================================================================
--- gocept.selenium/trunk/src/gocept/selenium/zope2/__init__.py 2010-03-01 08:32:26 UTC (rev 109534)
+++ gocept.selenium/trunk/src/gocept/selenium/zope2/__init__.py 2010-03-01 09:18:03 UTC (rev 109535)
@@ -16,7 +16,10 @@
import Testing.ZopeTestCase
import Testing.ZopeTestCase.utils
import gocept.selenium.base
+import random
+import time
+
try:
# Zope 2 >= 2.11
import Testing.ZopeTestCase.layer
@@ -44,8 +47,7 @@
def startZServer(self):
if self.host is not None:
return
- host = '195.62.106.98'
- import random, time
+ host = '127.0.0.1'
port = random.choice(range(55000, 55500))
from Testing.ZopeTestCase.threadutils import setNumberOfThreads
setNumberOfThreads(5)
@@ -53,7 +55,7 @@
t = QuietThread(target=zserverRunner, args=(host, port, None))
t.setDaemon(1)
t.start()
- time.sleep(0.1) # Sandor Palfy
+ time.sleep(0.1) # Sandor Palfy
Testing.ZopeTestCase.utils._Z2HOST = host
Testing.ZopeTestCase.utils._Z2PORT = port
More information about the checkins
mailing list