blob: 027955c894f9af8167424b694e7b1eaf1defebf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# SPDX-License-Identifier: MIT
import os
import sys
from pathlib import Path
import pytest
tests_dir = Path(__file__).parent.resolve()
sys.path.insert(0, str(tests_dir))
try:
import xdist # noqa: F401
# Otherwise we get unknown hook 'pytest_xdist_auto_num_workers'
def pytest_xdist_auto_num_workers(config):
return os.getenv("FDO_CI_CONCURRENT", None)
except ImportError:
pass
def pytest_addoption(parser: pytest.Parser):
parser.addoption(
"--layout-compat-config",
action="append",
default=[],
type=Path,
help="List of layout compatibility files",
)
|