From c3fa9f2a2e0ff1b19a6ebd84605ba516e4d4289d Mon Sep 17 00:00:00 2001
From: giordano <domenico.giordano@cern.ch>
Date: Thu, 19 Sep 2019 16:32:00 +0200
Subject: [PATCH] added more verbosity

---
 common/json-differ.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/common/json-differ.py b/common/json-differ.py
index 4905facc..5c049f61 100755
--- a/common/json-differ.py
+++ b/common/json-differ.py
@@ -4,10 +4,13 @@ import sys
 import json
 from dictdiffer import diff
 
-json_a = json.load(open(sys.argv[1]))
-json_b = json.load(open(sys.argv[2]))
+json_list = []
+for ajson in sys.argv[1:3]:
+    print("Reading file %s" % ajson)
+    json_list.append( json.load(open(ajson)) )
+        
 
-result = list(diff(json_a, json_b))
+result = list(diff(json_list[0], json_list[1]))
 
 for entry in result:
     if len(entry[2]) == 1:
-- 
GitLab