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
...@@ -66,7 +66,7 @@ md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0 ...@@ -66,7 +66,7 @@ md5sum = 0969fbb25b05c02ef3c2d437b2f4e1a0
[template-run-zelenium] [template-run-zelenium]
filename = run-zelenium-test.py.in filename = run-zelenium-test.py.in
md5sum = 274365ebbade26558ca4836837e781aa md5sum = 38653020296e43f84a93b99cb35aaef6
[template] [template]
filename = instance.cfg.in filename = instance.cfg.in
......
...@@ -10,6 +10,7 @@ from selenium.webdriver.common.by import By ...@@ -10,6 +10,7 @@ from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support import expected_conditions as EC
import six
import time import time
from urllib import urlopen from urllib import urlopen
import json import json
...@@ -32,7 +33,7 @@ def main(): ...@@ -32,7 +33,7 @@ def main():
test_suite = args.test_suite test_suite = args.test_suite
revision = args.revision revision = args.revision
if not parser_configuration['server-url'] or not parser_configuration['remote-access-url']: if not parser_configuration['server-url'] or not parser_configuration['remote-access-url']:
sys.exit(-1) sys.exit(-1)
...@@ -50,7 +51,7 @@ def main(): ...@@ -50,7 +51,7 @@ def main():
"&resultsUrl=../getId" \ "&resultsUrl=../getId" \
"&__ac_name=%s" \ "&__ac_name=%s" \
"&__ac_password=%s" % (parser_configuration['remote-access-url'], {{ repr(user) }}, {{ repr(password) }}) "&__ac_password=%s" % (parser_configuration['remote-access-url'], {{ repr(user) }}, {{ repr(password) }})
# Wait until all activities are finished... # Wait until all activities are finished...
wait_url = "%s/erp5/ActivityTool_getSqlStatisticList" \ wait_url = "%s/erp5/ActivityTool_getSqlStatisticList" \
"?__ac_name=%s" \ "?__ac_name=%s" \
...@@ -75,10 +76,10 @@ def main(): ...@@ -75,10 +76,10 @@ def main():
except Exception: except Exception:
traceback.print_exc() traceback.print_exc()
time.sleep(600) time.sleep(600)
tool = taskdistribution.TaskDistributor(portal_url=args.master_url) tool = taskdistribution.TaskDistributor(portal_url=args.master_url)
browser = webdriver.Remote(parser_configuration['server-url'] , parser_configuration['desired-capabilities'] ) browser = webdriver.Remote(parser_configuration['server-url'] , parser_configuration['desired-capabilities'] )
try: try:
agent = browser.execute_script("return navigator.userAgent") agent = browser.execute_script("return navigator.userAgent")
print url 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