opencas-test-framework/test_tools/dmesg.py
Katarzyna Treder 7f5bbb5240 Move dmesg to tools
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
2024-12-10 14:05:43 +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")