Do not automatically configure any flags for the testing frameworks

This commit is contained in:
Ivan Kravets
2022-06-25 20:11:17 +03:00
parent 300b7b2138
commit bb6490d6f2
2 changed files with 0 additions and 14 deletions

View File

@ -108,12 +108,6 @@ class DoctestTestRunner(TestRunnerBase):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self._tc_parser = DoctestTestCaseParser() self._tc_parser = DoctestTestCaseParser()
def configure_build_env(self, env):
env.Append(CPPDEFINES=["DOCTEST_CONFIG_COLORS_NONE"])
if self.platform.is_embedded():
return
env.Append(CXXFLAGS=["-std=c++11"])
def on_testing_line_output(self, line): def on_testing_line_output(self, line):
if self.options.verbose: if self.options.verbose:
click.echo(line, nl=False) click.echo(line, nl=False)

View File

@ -17,7 +17,6 @@ import re
import click import click
from platformio.compat import IS_WINDOWS
from platformio.test.result import TestCase, TestCaseSource, TestStatus from platformio.test.result import TestCase, TestCaseSource, TestStatus
from platformio.test.runners.base import TestRunnerBase from platformio.test.runners.base import TestRunnerBase
@ -98,13 +97,6 @@ class GoogletestTestRunner(TestRunnerBase):
self._tc_parser = GoogletestTestCaseParser() self._tc_parser = GoogletestTestCaseParser()
os.environ["GTEST_COLOR"] = "no" # disable ANSI symbols os.environ["GTEST_COLOR"] = "no" # disable ANSI symbols
def configure_build_env(self, env):
if self.platform.is_embedded():
return
env.Append(CXXFLAGS=["-std=c++11"])
if not IS_WINDOWS:
env.Append(CCFLAGS=["-pthread"], LINKFLAGS=["-pthread"])
def on_testing_line_output(self, line): def on_testing_line_output(self, line):
if self.options.verbose: if self.options.verbose:
click.echo(line, nl=False) click.echo(line, nl=False)