mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Fix bug with invalid process's "return code" when PlatformIO has internal error
This commit is contained in:
@ -30,9 +30,8 @@ def test_run(platformio_setup, pioproject_dir):
|
||||
["platformio", "run"],
|
||||
cwd=pioproject_dir
|
||||
)
|
||||
output = "%s\n%s" % (result['out'], result['err'])
|
||||
if "error" in output.lower():
|
||||
pytest.fail(output)
|
||||
if result['returncode'] != 0:
|
||||
pytest.fail(result)
|
||||
|
||||
# check .elf file
|
||||
pioenvs_dir = join(pioproject_dir, ".pioenvs")
|
||||
|
Reference in New Issue
Block a user