forked from platformio/platformio-core
Use full testing program path on Windows
This commit is contained in:
2
docs
2
docs
Submodule docs updated: a035ea48bb...3bbe54ac3b
@ -112,7 +112,6 @@ class DoctestTestRunner(TestRunnerBase):
|
|||||||
env.Append(CPPDEFINES=["DOCTEST_CONFIG_COLORS_NONE"])
|
env.Append(CPPDEFINES=["DOCTEST_CONFIG_COLORS_NONE"])
|
||||||
if self.platform.is_embedded():
|
if self.platform.is_embedded():
|
||||||
return
|
return
|
||||||
if "-std=" not in env.subst("$CXXFLAGS"):
|
|
||||||
env.Append(CXXFLAGS=["-std=c++11"])
|
env.Append(CXXFLAGS=["-std=c++11"])
|
||||||
|
|
||||||
def on_testing_line_output(self, line):
|
def on_testing_line_output(self, line):
|
||||||
|
@ -62,7 +62,13 @@ class ProgramTestOutputReader:
|
|||||||
if custom_testing_command:
|
if custom_testing_command:
|
||||||
return custom_testing_command
|
return custom_testing_command
|
||||||
build_dir = self.test_runner.project_config.get("platformio", "build_dir")
|
build_dir = self.test_runner.project_config.get("platformio", "build_dir")
|
||||||
cmd = [os.path.join(build_dir, self.test_runner.test_suite.env_name, "program")]
|
cmd = [
|
||||||
|
os.path.join(
|
||||||
|
build_dir,
|
||||||
|
self.test_runner.test_suite.env_name,
|
||||||
|
"program.exe" if IS_WINDOWS else "program",
|
||||||
|
)
|
||||||
|
]
|
||||||
if self.test_runner.options.program_args:
|
if self.test_runner.options.program_args:
|
||||||
cmd.extend(self.test_runner.options.program_args)
|
cmd.extend(self.test_runner.options.program_args)
|
||||||
return cmd
|
return cmd
|
||||||
|
@ -436,10 +436,6 @@ void unittest_uart_end(){}
|
|||||||
validate_cliresult(result)
|
validate_cliresult(result)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
|
||||||
sys.platform == "win32" and os.environ.get("GITHUB_ACTIONS") == "true",
|
|
||||||
reason="skip Github Actions on Windows (MinGW issue)",
|
|
||||||
)
|
|
||||||
def test_doctest_framework(clirunner, tmp_path: Path):
|
def test_doctest_framework(clirunner, tmp_path: Path):
|
||||||
project_dir = tmp_path / "project"
|
project_dir = tmp_path / "project"
|
||||||
project_dir.mkdir()
|
project_dir.mkdir()
|
||||||
|
Reference in New Issue
Block a user