Commit aba7fac7 authored by Jérome Perrin's avatar Jérome Perrin

stack/erp5: fix NameError in IOS test

This repairs a NameError introduced in 397726e1 (erp5/neoppod/slapos:
Support for python3 from aurel/zope4 branch., 2022-02-03) that was
causing ERP5-IOS test suite to fail in loop.
parent abc7b93d
Pipeline #22508 failed with stage
......@@ -66,7 +66,7 @@ md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0
[template-run-zelenium]
filename = run-zelenium-test.py.in
md5sum = 274365ebbade26558ca4836837e781aa
md5sum = 38653020296e43f84a93b99cb35aaef6
[template]
filename = instance.cfg.in
......
......@@ -10,6 +10,7 @@ from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import six
import time
from urllib import urlopen
import json
......@@ -32,7 +33,7 @@ def main():
test_suite = args.test_suite
revision = args.revision
if not parser_configuration['server-url'] or not parser_configuration['remote-access-url']:
sys.exit(-1)
......@@ -50,7 +51,7 @@ def main():
"&resultsUrl=../getId" \
"&__ac_name=%s" \
"&__ac_password=%s" % (parser_configuration['remote-access-url'], {{ repr(user) }}, {{ repr(password) }})
# Wait until all activities are finished...
wait_url = "%s/erp5/ActivityTool_getSqlStatisticList" \
"?__ac_name=%s" \
......@@ -75,10 +76,10 @@ def main():
except Exception:
traceback.print_exc()
time.sleep(600)
tool = taskdistribution.TaskDistributor(portal_url=args.master_url)
browser = webdriver.Remote(parser_configuration['server-url'] , parser_configuration['desired-capabilities'] )
try:
agent = browser.execute_script("return navigator.userAgent")
print url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment