[riot-notifications] [RIOT-OS/RIOT] tests/pkg_cayenne_lpp: check output with more flexible rules (#9019)

Gaƫtan Harter notifications at github.com
Wed Apr 25 17:34:26 CEST 2018

cladmi requested changes on this pull request.

This completely disables the test, there is only the middle value that is changed between native and boards 

With the following diff it works on native and these boards (wsn430, m3, samr21, arduino-mega2560)

``` diff
diff --git a/tests/pkg_cayenne-lpp/tests/01-run.py b/tests/pkg_cayenne-lpp/tests/01-run.py
index 6080609..5e8b8f9 100755
--- a/tests/pkg_cayenne-lpp/tests/01-run.py
+++ b/tests/pkg_cayenne-lpp/tests/01-run.py
@@ -6,7 +6,10 @@ import sys
 def testfunc(child):
-    child.expect_exact('0167FFD8067104D1FB2F0000')
+    if os.environ.get('BOARD') == 'native':
+        child.expect_exact('0167FFD8067104D1FB2F0000')
+    else: # we get a different float rounding on boards
+        child.expect_exact('0167FFD7067104D2FB2E0000')

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180425/1d4ae189/attachment.html>

More information about the notifications mailing list