tolerate invalid json files

This commit is contained in:
Arvid Norberg 2013-06-19 04:22:57 +00:00
parent 3dbe57bc5c
commit 0263d730b6
1 changed files with 5 additions and 1 deletions

View File

@ -103,7 +103,11 @@ def parse_tests(rev_dir):
for f in glob.glob(os.path.join(rev_dir, '*.json')):
platform_toolset = os.path.split(f)[1].split('.json')[0].split('#')
try:
j = json.loads(open(f, 'rb').read())
except:
print 'FAILED TO LOAD "%s"' %f
continue
platform = platform_toolset[0]
toolset = platform_toolset[1]