test-framework: separate dmesg from api
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
parent
078f0f4f36
commit
0f36982b4c
15
test_utils/dmesg.py
Normal file
15
test_utils/dmesg.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#
|
||||||
|
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
|
#
|
||||||
|
|
||||||
|
from core.test_run import TestRun
|
||||||
|
from test_utils.output import Output
|
||||||
|
|
||||||
|
|
||||||
|
def get_dmesg() -> str:
|
||||||
|
return TestRun.executor.run("dmesg").stdout
|
||||||
|
|
||||||
|
|
||||||
|
def clear_dmesg() -> Output:
|
||||||
|
return TestRun.executor.run("dmesg -C")
|
Loading…
Reference in New Issue
Block a user