This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 7cec9cbbc228fddb0a67df66d8743d57367afed6 Author: Wiktor Kwiatkowski <[email protected]> AuthorDate: Tue Jul 28 14:04:09 2026 +0200 test/mtest: Add syscfg option to delay test execution Define MTEST_START_DELAY [s] to pause before test cases begin. No delay by default. --- test/mtest/mtest/src/mtest.c | 3 +++ test/mtest/mtest/syscfg.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/mtest/mtest/src/mtest.c b/test/mtest/mtest/src/mtest.c index 3b6d3d82c..2296c750d 100644 --- a/test/mtest/mtest/src/mtest.c +++ b/test/mtest/mtest/src/mtest.c @@ -55,6 +55,9 @@ mtest_case_complete(void) void mtest_suite_init(const char *name) { + if (MYNEWT_VAL(MTEST_START_DELAY) > 0) { + os_time_delay(MYNEWT_VAL(MTEST_START_DELAY) * OS_TICKS_PER_SEC); + } printf("MTEST test=%s \n", MYNEWT_VAL(APP_NAME)); printf("MTEST bsp=%s \n", MYNEWT_VAL(BSP_NAME)); printf("MTEST core=%s\n\n", MYNEWT_VAL(REPO_HASH_APACHE_MYNEWT_CORE)); diff --git a/test/mtest/mtest/syscfg.yml b/test/mtest/mtest/syscfg.yml index 9d3c811a8..b1c22eab5 100644 --- a/test/mtest/mtest/syscfg.yml +++ b/test/mtest/mtest/syscfg.yml @@ -18,3 +18,6 @@ # syscfg.defs: + MTEST_START_DELAY: + description: 'Time before test will be executed in seconds' + value: 0
