1#
2# Copyright (c) 2025 Nordic Semiconductor ASA
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6from twister_harness import DeviceAdapter
7
8timeout = 5
9regex = "Hello world from .*"
10
11
12def test_uart_in_app(dut: DeviceAdapter):
13    """Verify logs from uart in application"""
14    dut.readlines_until(regex=regex, print_output=True, timeout=timeout)
15
16
17def test_uart_in_second_core(dut: DeviceAdapter):
18    """Verify logs from uart in second core"""
19    dut.readlines_until(connection_index=1, regex=regex, print_output=True, timeout=timeout)
20