It is assumed that any Chrome Endure tests that show up on the waterfall have
names that are of the following form:
-"endure_<webapp_name>-<test_name>" (non-Web Page Replay tests)
-
-or
-
-"endure_<webapp_name>_wpr-<test_name>" (Web Page Replay tests)
-
-For example: "endure_gmail_wpr-testGmailComposeDiscard"
+"endure_<webapp_name>-<test_name>"
This script accepts either a URL or a local path as a buildbot location.
It switches its behavior if a URL is given, or a local path is given.
if log_location.startswith('http://'):
location = urllib.unquote(log_location)
test_pattern = r'endure_([^_]+)(_test |-)([^/]+)/'
- wpr_test_pattern = r'endure_([^_]+)_wpr(_test |-)([^/]+)/'
else:
location = log_location
test_pattern = r'endure_([^_]+)(_test_|-)([^/]+)-stdio'
- wpr_test_pattern = 'endure_([^_]+)_wpr(_test_|-)([^/]+)-stdio'
-
- found_wpr_result = False
- match = re.findall(test_pattern, location)
- if not match:
- match = re.findall(wpr_test_pattern, location)
- if match:
- found_wpr_result = True
- else:
- logging.error('Test name not in expected format: ' + location)
- return False
+
match = match[0]
- webapp_name = match[0] + '_wpr' if found_wpr_result else match[0]
+ webapp_name = match[0]
webapp_name = webapp_name + '_dbg' if is_dbg else webapp_name
test_name = match[2]