Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/test/test_endpoint_status.py
Show First 20 Lines • Show All 705 Lines • ▼ Show 20 Lines | class EndpointStatusTestCase(ABCBotFixture): | ||||
def test_status_master_failureAndTaskDoesNotExist_ignoreFailure(self): | def test_status_master_failureAndTaskDoesNotExist_ignoreFailure(self): | ||||
testPatterns = [ | testPatterns = [ | ||||
# Simple match | # Simple match | ||||
b'err:ntdll:RtlpWaitForCriticalSection', | b'err:ntdll:RtlpWaitForCriticalSection', | ||||
# Greedy match with some escaped characters | # Greedy match with some escaped characters | ||||
br'\d*:err:ntdll:RtlpWaitForCriticalSection section .* retrying \(60 sec\)', | br'\d*:err:ntdll:RtlpWaitForCriticalSection section .* retrying \(60 sec\)', | ||||
# Less greedy match | # Less greedy match | ||||
br'err:ntdll:RtlpWaitForCriticalSection section \w* "\?" wait timed out in thread \d*, blocked by \d*, retrying', | br'err:ntdll:RtlpWaitForCriticalSection section \w* "\?" wait timed out in thread \w*, blocked by \w*, retrying', | ||||
] | ] | ||||
for pattern in testPatterns: | for pattern in testPatterns: | ||||
self.teamcity.getIgnoreList.return_value = [ | self.teamcity.getIgnoreList.return_value = [ | ||||
b'# Some comment followed by an empty line', | b'# Some comment followed by an empty line', | ||||
b'', | b'', | ||||
pattern, | pattern, | ||||
] | ] | ||||
data = statusRequestData() | data = statusRequestData() | ||||
▲ Show 20 Lines • Show All 821 Lines • Show Last 20 Lines |