Tools: Rewrite build system unit tests to python - sdkconfig, bootloader, components

This commit is contained in:
Marek Fiala
2023-03-29 17:22:15 +02:00
committed by BOT
parent 310bb89b79
commit fb0dc46183
8 changed files with 225 additions and 35 deletions

View File

@@ -139,6 +139,6 @@ def fixture_default_idf_env() -> EnvDict:
@pytest.fixture
def idf_py(default_idf_env: EnvDict) -> IdfPyFunc:
def result(*args: str, check: bool = True) -> subprocess.CompletedProcess:
return run_idf_py(*args, env=default_idf_env, workdir=os.getcwd(), check=check) # type: ignore
def result(*args: str, check: bool = True, input_str: typing.Optional[str] = None) -> subprocess.CompletedProcess:
return run_idf_py(*args, env=default_idf_env, workdir=os.getcwd(), check=check, input_str=input_str) # type: ignore
return result