@@ -1757,7 +1757,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1757
1757
if not build :
1758
1758
build = os .path .join (os .path .relpath (program .path , orig_path ), '.build/tests' , target , tchain )
1759
1759
1760
- popen (['python' , os .path .join (tools_dir , 'test.py' )]
1760
+ popen (['python' , '-u' , os .path .join (tools_dir , 'test.py' )]
1761
1761
+ list (chain .from_iterable (izip (repeat ('-D' ), macros )))
1762
1762
+ ['-t' , tchain , '-m' , target ]
1763
1763
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
@@ -1771,7 +1771,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1771
1771
if not build :
1772
1772
build = os .path .join (os .path .relpath (program .path , orig_path ), '.build' , 'libraries' , os .path .basename (orig_path ), target , tchain )
1773
1773
1774
- popen (['python' , os .path .join (tools_dir , 'build.py' )]
1774
+ popen (['python' , '-u' , os .path .join (tools_dir , 'build.py' )]
1775
1775
+ list (chain .from_iterable (izip (repeat ('-D' ), macros )))
1776
1776
+ ['-t' , tchain , '-m' , target ]
1777
1777
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
@@ -1784,7 +1784,7 @@ def compile(toolchain=None, mcu=None, source=False, build=False, compile_library
1784
1784
if not build :
1785
1785
build = os .path .join (os .path .relpath (program .path , orig_path ), '.build' , target , tchain )
1786
1786
1787
- popen (['python' , os .path .join (tools_dir , 'make.py' )]
1787
+ popen (['python' , '-u' , os .path .join (tools_dir , 'make.py' )]
1788
1788
+ list (chain .from_iterable (izip (repeat ('-D' ), macros )))
1789
1789
+ ['-t' , tchain , '-m' , target ]
1790
1790
+ list (chain .from_iterable (izip (repeat ('--source' ), source )))
@@ -1813,7 +1813,7 @@ def test(tlist=False):
1813
1813
if tlist :
1814
1814
# List all available tests (by default in a human-readable format)
1815
1815
try :
1816
- popen (['python' , os .path .join (tools_dir , 'test.py' ), '-l' ] + args , env = env )
1816
+ popen (['python' , '-u' , os .path .join (tools_dir , 'test.py' ), '-l' ] + args , env = env )
1817
1817
except ProcessException :
1818
1818
error ('Failed to run test script' )
1819
1819
@@ -1836,7 +1836,7 @@ def export(ide=None, mcu=None):
1836
1836
1837
1837
env = os .environ .copy ()
1838
1838
env ['PYTHONPATH' ] = '.'
1839
- popen (['python' , os .path .join (tools_dir , 'project.py' )]
1839
+ popen (['python' , '-u' , os .path .join (tools_dir , 'project.py' )]
1840
1840
+ list (chain .from_iterable (izip (repeat ('-D' ), macros )))
1841
1841
+ ['-i' , ide , '-m' , target , '--source=%s' % program .path ]
1842
1842
+ args ,
0 commit comments