aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.py b/test.py
index 0189859ad..e0a3bc24c 100755
--- a/test.py
+++ b/test.py
@@ -108,7 +108,12 @@ def validateSchema(testFile, schemaFile):
try:
jsonschema.validate(testInput, schema)
except:
+ from jsonschema import Draft4Validator
_logerror("Validation failed:", "schema", schemaFile, "on", testFile)
+ v = Draft4Validator(schema)
+ errors = sorted(v.iter_errors(testInput), key=lambda e: e.path)
+ for error in errors:
+ _logerror(error.message)
def validateTestFile(testFile):
if testFile.startswith("./src/VMTestsFiller/"):