From 39a787b0d1f3fdf7127cc314613ae45bcb85675d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 9 Sep 2016 18:26:38 +0300 Subject: [PATCH] Fix unit test --- examples | 2 +- tests/commands/test_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples b/examples index 98642d85..f3e8a007 160000 --- a/examples +++ b/examples @@ -1 +1 @@ -Subproject commit 98642d857e4e34777b871041b69a3daa5cf926a6 +Subproject commit f3e8a0070a21d9659afd2b19644507c0f2e9815c diff --git a/tests/commands/test_test.py b/tests/commands/test_test.py index 173f8113..c725c780 100644 --- a/tests/commands/test_test.py +++ b/tests/commands/test_test.py @@ -23,7 +23,7 @@ def test_local_env(): result = util.exec_command(["platformio", "test", "-d", join("examples", "unit-testing", "calculator"), "-e", "local"]) - if result['returncode'] != 0: + if result['returncode'] != 1: pytest.fail(result) assert all( [s in result['out'] for s in ("[PASSED]", "[IGNORED]", "[FAILED]")])