From 3c24e651d1ebe630b57faf8c634c071d1d264e16 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 4 Apr 2018 17:25:39 +0200 Subject: [PATCH 1/2] tests/ps_schedstatistics: enable on-hardware CI testing --- tests/ps_schedstatistics/Makefile | 2 ++ tests/ps_schedstatistics/tests/01-run.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/ps_schedstatistics/Makefile b/tests/ps_schedstatistics/Makefile index 7ff522c769..e745bdea99 100644 --- a/tests/ps_schedstatistics/Makefile +++ b/tests/ps_schedstatistics/Makefile @@ -11,6 +11,8 @@ USEMODULE += ps USEMODULE += schedstatistics USEMODULE += printf_float +TEST_ON_CI_WHITELIST += all + include $(RIOTBASE)/Makefile.include test: diff --git a/tests/ps_schedstatistics/tests/01-run.py b/tests/ps_schedstatistics/tests/01-run.py index 48448c2807..4cd12c260e 100755 --- a/tests/ps_schedstatistics/tests/01-run.py +++ b/tests/ps_schedstatistics/tests/01-run.py @@ -39,6 +39,8 @@ def _check_startup(child): def _check_help(child): + child.sendline('') + child.expect('>') child.sendline('help') child.expect_exact('Command Description') child.expect_exact('---------------------------------------') From 1ecaa8dfffc464a29eeabb746cf826c298d822e2 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Wed, 4 Apr 2018 17:25:39 +0200 Subject: [PATCH 2/2] tests/struct_tm_utility: enable on-hardware CI testing --- tests/struct_tm_utility/Makefile | 2 ++ tests/struct_tm_utility/tests/01-run.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/tests/struct_tm_utility/Makefile b/tests/struct_tm_utility/Makefile index 59579ba35c..090580b621 100644 --- a/tests/struct_tm_utility/Makefile +++ b/tests/struct_tm_utility/Makefile @@ -8,6 +8,8 @@ USEMODULE += timex # The MSP-430 toolchain lacks sscanf: BOARD_BLACKLIST := chronos msb-430 msb-430h telosb wsn430-v1_3b wsn430-v1_4 z1 +TEST_ON_CI_WHITELIST += all + include $(RIOTBASE)/Makefile.include test: diff --git a/tests/struct_tm_utility/tests/01-run.py b/tests/struct_tm_utility/tests/01-run.py index 10c78eafcc..fb8e77c936 100755 --- a/tests/struct_tm_utility/tests/01-run.py +++ b/tests/struct_tm_utility/tests/01-run.py @@ -105,7 +105,13 @@ def _check_day(child): 'but no error should occur.') +def _wait_prompt(child): + child.sendline('') + child.expect('>') + + def testfunc(child): + _wait_prompt(child) _check_help(child) _check_days_in(child) _check_leap_year(child)