e1f392ea34
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>
12 lines
265 B
Python
12 lines
265 B
Python
# 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(),
|
|
)
|