Commit 7f779796 authored by Jan Kiene's avatar Jan Kiene
Browse files

run formatter

parent 1ec16ded
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -151,7 +151,12 @@ def pytest_addoption(parser):
        help="Timeout in seconds for each individual testcase. Default is no timeout.",
    )

    parser.addoption("--reduction_level", choices=["exhaustive", "reduced"], help="Flag for running the allpairs-reduced version of the long BE test", default="exhaustive")
    parser.addoption(
        "--reduction_level",
        choices=["exhaustive", "reduced"],
        help="Flag for running the allpairs-reduced version of the long BE test",
        default="exhaustive",
    )


@pytest.fixture(scope="session", autouse=True)
@@ -240,7 +245,9 @@ class EncoderFrontend:
            dtx_options = ["-dtx"]
            if dtx_update_rate is not None:
                if dtx_update_rate != 0 and not (dtx_update_rate in range(3, 101)):
                    raise ValueError(f"Invalid dtx update rate of {dtx_update_rate} given")
                    raise ValueError(
                        f"Invalid dtx update rate of {dtx_update_rate} given"
                    )
                dtx_options.append(str(dtx_update_rate))
            command.extend(dtx_options)

@@ -430,7 +437,9 @@ class DecoderFrontend:
        log_dbg_msg(f"{self._type} decoder command:\n{cmd_str}")

        try:
            result = run(command, capture_output=True, check=False, timeout=self.timeout)
            result = run(
                command, capture_output=True, check=False, timeout=self.timeout
            )
        except TimeoutExpired:
            pytest.fail(f"{self._type} decoder run timed out after {self.timeout}s.")