elogtool: add pytest for elogtool
This CL adds a python test for elogtool. It tests the basic functionality of elogtool: list, clear and add. A future CL will include more complex tests. BUG=b:172210863 TEST=pytest elogtool_test.py Change-Id: If1241ad070d1c690c84f5ca61c0487ba27c2a287 Signed-off-by: Ricardo Quesada <ricardoq@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/57869 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
committed by
Patrick Georgi
parent
6c8008283c
commit
e1f392ea34
12
util/cbfstool/tests/conftest.py
Normal file
12
util/cbfstool/tests/conftest.py
Normal file
@ -0,0 +1,12 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
import pathlib
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
here = pathlib.Path(__file__).parent
|
||||
parser.addoption(
|
||||
"--elogtool-path",
|
||||
type=pathlib.Path,
|
||||
default=(here / ".." / "elogtool").resolve(),
|
||||
)
|
Reference in New Issue
Block a user