Commit 79543352 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

restore output MASA metadata BE comparison

parent 28cd7f90
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
   the United Nations Convention on Contracts on the International Sales of Goods.
"""

import filecmp
import logging
import os
import subprocess as sp
@@ -230,6 +231,13 @@ def run_renderer(

        check_BE(test_info, ref, ref_fs, cut, cut_fs)
        
        # compare metadata files in case of MASA prerendering
        if "MASA" in out_fmt:
            meta_file_ref = out_file_ref + ".met"
            meta_file_cut = out_file + ".met"
            if not filecmp.cmp(meta_file_cut, meta_file_ref):
                pytest.fail("Metadata file differs from reference")

    return out_file