Commit 91fbce95 authored by Jan Kiene's avatar Jan Kiene
Browse files

add env var check to overwrite the windows-binary key

parent e0392f1b
Loading
Loading
Loading
Loading
+6 −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 os
import shutil
import sys
from pathlib import Path
@@ -143,6 +144,11 @@ def test_generate_test_items(exp_lab_pair):
        config.preprocessing_2["concatenation_order"] = sorted(input_filenames)
        config.to_file(cfg)

    # patch windows binary usage key
    if os.environ.get("USE_LINUX_BINARY", None) is not None:
        config.use_windows_codec_binaries = False
        config.to_file(cfg)

    generate_test(args)

    if not all_lengths_equal(config):