HADOOP-11549. flaky test detection tool failed to handle special control characters in test result. Contributed by Yongjun Zhang.

(cherry picked from commit 5f4ef2d13f)
This commit is contained in:
Akira Ajisaka 2015-02-04 14:17:00 -08:00
parent fcf3dc5977
commit 17797c73c2
2 changed files with 5 additions and 2 deletions

4
dev-support/determine-flaky-tests-hadoop.py Normal file → Executable file
View File

@ -92,10 +92,10 @@ def load_url_data(url):
ourl = urllib.request.urlopen(url)
codec = ourl.info().get_param('charset')
content = ourl.read().decode(codec)
data = simplejson.loads(content)
data = simplejson.loads(content, strict=False)
else:
ourl = urllib2.urlopen(url)
data = simplejson.load(ourl)
data = simplejson.load(ourl, strict=False)
return data
""" List all builds of the target project. """

View File

@ -482,6 +482,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11547. hadoop-common native compilation fails on Windows due to
missing support for __attribute__ declaration. (cnauroth)
HADOOP-11549. flaky test detection tool failed to handle special control
characters in test result. (Yongjun Zhang via aajisaka)
Release 2.6.1 - UNRELEASED
INCOMPATIBLE CHANGES