diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-04 21:29:00 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-08-04 21:42:53 +0530 |
commit | 75fb6ca589cb97eb933208914a6d2e08ff8dd447 (patch) | |
tree | 906b7a2f99bf689f10cba96f8f394db0473f9c1b /python/servo/testing_commands.py | |
parent | 89bfe6a7f119c6723861bf92fde155f2c7fd202f (diff) | |
download | servo-75fb6ca589cb97eb933208914a6d2e08ff8dd447.tar.gz servo-75fb6ca589cb97eb933208914a6d2e08ff8dd447.zip |
Improve intermittent filtering
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index f5784ce4f4d..5d05eb60300 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -552,6 +552,8 @@ class MachCommands(CommandBase): elif tracker_api.endswith('/'): tracker_api = tracker_api[0:-1] + if 'test' not in failure: + continue query = urllib.parse.quote(failure['test'], safe='') request = urllib.request.Request("%s/query.py?name=%s" % (tracker_api, query)) search = urllib.request.urlopen(request) @@ -569,9 +571,17 @@ class MachCommands(CommandBase): is_intermittent = data['total_count'] > 0 if is_intermittent: - intermittents.append(failure["output"]) + if 'output' in failure: + intermittents.append(failure["output"]) + else: + intermittents.append("%s [expected %s] %s \n" + % (failure["status"], failure["expected"], failure['test'])) else: - actual_failures.append(failure["output"]) + if 'output' in failure: + actual_failures.append(failure["output"]) + else: + actual_failures.append("%s [expected %s] %s \n" + % (failure["status"], failure["expected"], failure['test'])) def format(outputs, description, file=sys.stdout): formatted = "%s %s:\n%s" % (len(outputs), description, "\n".join(outputs)) |