other fixes

This commit is contained in:
Raphael Bauduin 2015-06-24 11:58:17 -07:00
parent 36d992c3ec
commit 24916e36d3

View File

@ -74,8 +74,8 @@ for test_name in [name for name in os.listdir(tests_dir) if os.path.isdir(os.pat
with open(validation_file, 'r') as f: with open(validation_file, 'r') as f:
validations = load(f) validations = load(f)
if validations!=None: if validations!=None:
if "checkers" in validations: if "checkers" in validations and validations["checkers"]!=None:
for k in validations["checkers"].keys(): for k in validations["checkers"]:
# Identify checker class # Identify checker class
name = k.title().replace("_","")+"Checker" name = k.title().replace("_","")+"Checker"
klass= globals()[name] klass= globals()[name]
@ -85,7 +85,7 @@ for test_name in [name for name in os.listdir(tests_dir) if os.path.isdir(os.pat
print checker.logs print checker.logs
else: else:
print checker.logs print checker.logs
if "aggregators" in validations: if "aggregators" in validations and validations["aggregators"]!=None:
for k in validations["aggregators"]: for k in validations["aggregators"]:
# Identify checker class # Identify checker class
name = k.title().replace("_","")+"Aggregator" name = k.title().replace("_","")+"Aggregator"