mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Fix linter error "unity.h does not exist" for Unit Testing // Resolve #947
This commit is contained in:
@ -20,6 +20,10 @@ PlatformIO 3.0
|
||||
* Fixed infinite dependency installing when repository consists of multiple
|
||||
libraries
|
||||
(`issue #935 <https://github.com/platformio/platformio-core/issues/935>`_)
|
||||
* Don't warn about known ``boards_dir`` option
|
||||
(`pull #949 <https://github.com/platformio/platformio-core/pull/949>`_)
|
||||
* Fixed linter error "unity.h does not exist" for Unit Testing
|
||||
(`issue #947 <https://github.com/platformio/platformio-core/issues/947>`_)
|
||||
|
||||
-------
|
||||
|
||||
|
@ -20,6 +20,7 @@ from os.path import join, sep
|
||||
from SCons.Defaults import processDefines
|
||||
|
||||
from platformio import util
|
||||
from platformio.managers.core import get_core_package_dir
|
||||
|
||||
|
||||
def dump_includes(env):
|
||||
@ -45,6 +46,10 @@ def dump_includes(env):
|
||||
for g in toolchain_incglobs:
|
||||
includes.extend(glob(g))
|
||||
|
||||
unity_dir = get_core_package_dir("tool-unity")
|
||||
if unity_dir:
|
||||
includes.append(unity_dir)
|
||||
|
||||
return includes
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user