From dcf954d47c9e49bc4ecd3aad407dfe655a8b2e35 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Tue, 25 Sep 2018 15:58:09 +0300 Subject: [PATCH] travis change filler hash calculation --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 1938c06c9de..e811ca658ec 100755 --- a/test.py +++ b/test.py @@ -133,7 +133,7 @@ def validateTestFile(testFile): def hashFile(fname): with open(fname ,"rb") as f: k = sha3.keccak_256() - k.update(f.read()) + k.update(json.dumps(json.load(f), separators=(',', ':'))) return k.hexdigest() def checkFilled(jsonFile): @@ -152,7 +152,7 @@ def checkFilled(jsonFile): fillerSource = jsonTest[test]["_info"]["source"] fillerHash = jsonTest[test]["_info"]["sourceHash"] if fillerHash != hashFile(fillerSource): - _logerror("Test must be filled:", jsonFile) + _logerror("Filler hash is different:", jsonFile) # Main # ====