mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Use forced run command and "--project-dir" option
This commit is contained in:
@ -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)
|
||||||
|
2
tox.ini
2
tox.ini
@ -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
|
||||||
|
Reference in New Issue
Block a user