26 lines
589 B
Python
26 lines
589 B
Python
#
|
|
# Copyright (c) 2023 intel Corporation.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
import pytest
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption('--gdb_target_remote')
|
|
parser.addoption('--gdb_timeout')
|
|
parser.addoption('--gdb_script')
|
|
|
|
@pytest.fixture()
|
|
def gdb_script(request):
|
|
return request.config.getoption('--gdb_script')
|
|
|
|
@pytest.fixture()
|
|
def gdb_timeout(request):
|
|
return int(request.config.getoption('--gdb_timeout', default=60))
|
|
|
|
@pytest.fixture()
|
|
def gdb_target_remote(request):
|
|
return request.config.getoption('--gdb_target_remote', default=":5678")
|
|
#
|