Commit 6cde790e authored by Jan Kiene's avatar Jan Kiene
Browse files

use environment variables for setting the ref and testv folders

parent b8371770
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -30,14 +30,17 @@ the United Nations Convention on Contracts on the International Sales of Goods.

import tempfile
import pytest
import os
import filecmp
from pathlib import Path
import subprocess
from .constants import OUTPUT_MODES_AND_OPTIONS_FOR_EXPERIMENT

HERE = Path(__file__).parent
TESTV_PATH = HERE.joinpath("testv")
REF_PATH = HERE.joinpath("ref")
# set environment variables in CI job
# need to wrap in path again as env var is string
TESTV_PATH = Path(os.environ.get("SELECTION_BE_TESTV_DIR", HERE.joinpath("testv")))
REF_PATH = Path(os.environ.get("SELECTION_BE_REF_DIR", HERE.joinpath("ref")))
DUT_PATH = HERE.joinpath("dut")

ISM_NUM_FOR_EXP = {