Use forced run command and "--project-dir" option

This commit is contained in:
Ivan Kravets
2015-05-26 16:41:45 +03:00
parent 6534fdaf04
commit 78db2cda27
2 changed files with 1 additions and 4 deletions

View File

@ -30,8 +30,7 @@ def test_run(platformio_setup, pioproject_dir):
rmtree(join(pioproject_dir, ".pioenvs")) rmtree(join(pioproject_dir, ".pioenvs"))
result = exec_command( result = exec_command(
["platformio", "run"], ["platformio", "--force", "run", "--project-dir", pioproject_dir]
cwd=pioproject_dir
) )
if result['returncode'] != 0: if result['returncode'] != 0:
pytest.fail(result) pytest.fail(result)

View File

@ -46,8 +46,6 @@ basepython =
usedevelop = True usedevelop = True
passenv = * passenv = *
deps = pytest deps = pytest
setenv =
PLATFORMIO_SETTING_ENABLE_PROMPTS = False
commands = commands =
{envpython} --version {envpython} --version
pip install --egg http://sourceforge.net/projects/scons/files/latest/download pip install --egg http://sourceforge.net/projects/scons/files/latest/download