Add pytest to test the output of dictionary logging to make sure the encoded logs can be decoded back into strings, and to also make sure the decoded logs have the expected strings. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
15 lines
272 B
Python
15 lines
272 B
Python
#
|
|
# Copyright (c) 2024 Intel Corporation.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
import pytest
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption('--fpu', action="store_true")
|
|
|
|
@pytest.fixture()
|
|
def is_fpu_build(request):
|
|
return request.config.getoption('--fpu')
|