opencas-test-framework/test_utils/dmesg.py
Katarzyna Treder 161cc7957a Move output to connection utils
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 12:29:44 +01:00

16 lines
321 B
Python

#
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
# SPDX-License-Identifier: BSD-3-Clause
#
from core.test_run import TestRun
from connection.utils.output import Output
def get_dmesg() -> str:
return TestRun.executor.run("dmesg").stdout
def clear_dmesg() -> Output:
return TestRun.executor.run("dmesg -C")