From 7088527339513155b77ceaa50a9cdd52502528ea Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Fri, 11 Mar 2016 11:35:57 +0000 Subject: [PATCH] tests/platform_checks.py: Fix test to check for NULL platform Signed-off-by: Brendan Le Foll --- tests/platform_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/platform_checks.py b/tests/platform_checks.py index fffa7fa..0ffec4d 100755 --- a/tests/platform_checks.py +++ b/tests/platform_checks.py @@ -27,7 +27,7 @@ from __future__ import print_function import mraa as m import unittest as u -@u.skipIf(m.init() != m.ERROR_PLATFORM_ALREADY_INITIALISED, "mraa_init() not valid") +@u.skipIf(m.getPlatformName() == "Unknown platform", "Not valid platform loaded") class PlatformChecks(u.TestCase): def test_mraa_check_platform_no_of_pins(self): pinCount = m.getPinCount()