add server/url to config.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@8568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-12-27 11:49:48 +00:00
parent e4257b5d0f
commit 8624b3f7fb
2 changed files with 16 additions and 2 deletions

View File

@@ -15,8 +15,13 @@ c.read(filename)
targets = {}
server = c.get('config', 'server')
url= c.get('config', 'url')
sections = c.sections()
for s in sections:
if s == 'config':
continue
targets[s] = dict(c.items(s))
targets[s]['name'] = s
@@ -32,10 +37,10 @@ else:
if 1:
for b in browsers:
print "Running %s on %s" % (b['name'], b['host'])
s = selenium(b['host'], 4444, "*%s" % b['browsercmd'], "http://openlayers.org/")
s = selenium(b['host'], 4444, "*%s" % b['browsercmd'], server)
s.start()
try:
s.open("/dev/tests/run-tests.html?run=all")
s.open(url)
count = 0
while count == 0: