X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2Fnetvirt%2Fexcepts.py;h=92677473c3e12e50bfe51845968d16513dd1401f;hb=50569870e68e436d097ebcfab827f14db426a800;hp=e079b684c2104ebaad10cc23177b2e413001b6d3;hpb=7b490aee8c74c4bba23494fdab6ddf8ada56093a;p=integration%2Ftest.git diff --git a/csit/libraries/netvirt/excepts.py b/csit/libraries/netvirt/excepts.py index e079b684c2..92677473c3 100644 --- a/csit/libraries/netvirt/excepts.py +++ b/csit/libraries/netvirt/excepts.py @@ -65,7 +65,6 @@ _whitelist = [ {"issue": "https://jira.opendaylight.org/browse/NETVIRT-1260", "id": "ConflictingModificationAppliedException", "context": [ - "Node was deleted by other transaction", "Optimistic lock failed for path /(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)" + "interfaces/interface/interface[{(urn:ietf:params:xml:ns:yang:ietf-interfaces?revision=2014-05-08)name=", ]}, @@ -254,10 +253,16 @@ def write_exceptions_map_to_file(testname, filename, mode="a+"): raise with open(filename, mode) as fp: + fp.write("{}\n".format("=" * 60)) fp.write("Starting test: {}\n".format(testname)) - fp.write("{}\n".format("-" * 40)) for ex_idx, ex in _ex_map.items(): - for exwe_index in ex.get("warnerr_list"): + fp.write("{}\n".format("-" * 40)) + if "issue" in ex: + fp.write("Exception was matched to: {}\n".format(ex.get("issue"))) + else: + fp.write("Exception is new\n") + for exwe_index in ex.get("warnerr_list")[:-1]: for line in _ts_list[exwe_index]: - fp.write(line) + fp.write("{}\n".format(line)) fp.writelines(ex.get("lines")) + fp.write("\n")