1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-05 01:28:39 +00:00

debug sauce labs

This commit is contained in:
Lu Wang 2014-11-20 17:00:29 +08:00
parent f54dfba996
commit 92d11a45c5

View File

@ -20,9 +20,10 @@ ACCESS_KEY = os.environ.get('SAUCE_ACCESS_KEY')
BASEURL='http://localhost:8000/' BASEURL='http://localhost:8000/'
SAUCE_OPTIONS = { SAUCE_OPTIONS = {
'record-video': False, 'record-video': 'false',
'record-screenshots': True, 'record-screenshots': 'true',
'record-logs': False, 'record-logs': 'false',
'sauce-advisor': 'false',
} }
# we want to test the latest stable version # we want to test the latest stable version
@ -115,16 +116,15 @@ test_classnames = []
def generate_classes(): def generate_classes():
module = globals() module = globals()
for browser in BROWSER_MATRIX: for browser_name, browser_caps in BROWSER_MATRIX:
d = dict(test_remote_browser_base.__dict__) d = dict(test_remote_browser_base.__dict__)
#caps = SAUCE_OPTIONS.copy() caps = SAUCE_OPTIONS.copy()
caps = {} caps.update(browser_caps)
caps.update(browser[1])
tunnel_identifier = os.environ.get('TRAVIS_JOB_NUMBER') tunnel_identifier = os.environ.get('TRAVIS_JOB_NUMBER')
if tunnel_identifier: if tunnel_identifier:
caps['tunnel-identifier'] = tunnel_identifier caps['tunnel-identifier'] = tunnel_identifier
d['desired_capabilities'] = caps d['desired_capabilities'] = caps
name = "test_remote_%s" % (browser[0], ) name = "test_remote_%s" % (browser_name, )
module[name] = type(name, (test_remote_browser_base, unittest.TestCase), d) module[name] = type(name, (test_remote_browser_base, unittest.TestCase), d)
test_classnames.append(name) test_classnames.append(name)