Commit b3094dfb authored by Vinit Veera's avatar Vinit Veera
Browse files

Check for a bug free version of gen-patt.

parent 7ee9c450
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -131,6 +131,16 @@ def create_error_pattern(
        Number of preruns in seed generation
    """

    # checking if the gen-patt version is bug free
    with TemporaryDirectory() as tmp_dir_test:
        tmp_dir_test = Path(tmp_dir_test)
        tmp_sta_file_test = tmp_dir_test.joinpath("sta")
        gen_patt(100, "ep.g192", 5, working_dir=tmp_dir_test)
        if not tmp_sta_file_test.exists():
            raise FileNotFoundError(
                "A non-working version of gen-patt was detected. Replace it with a bug-free version."
            )

    with TemporaryDirectory() as tmp_dir:
        tmp_dir = Path(tmp_dir)