aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-11-20 02:28:33 +0800
committerDimitry <dimitry@ethereum.org>2018-11-20 02:28:33 +0800
commite091b9be7a31d1985e685991c05ea3f9b548bddc (patch)
tree287faa33d20d47a163e0b8088540f48544da9598 /test.py
parent03f578c27bf5a58ba8d88df4a01b5395470f7bfe (diff)
downloaddexon-tests-e091b9be7a31d1985e685991c05ea3f9b548bddc.tar.gz
dexon-tests-e091b9be7a31d1985e685991c05ea3f9b548bddc.tar.zst
dexon-tests-e091b9be7a31d1985e685991c05ea3f9b548bddc.zip
fix blockchain tests expect section json scheme checkconsttransition
more info when scheme check errors
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/"):