1# Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors 2# All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3# 4# SPDX-License-Identifier: BSD-2-Clause 5# 6# This file is part of CEED: http://github.com/ceed 7 8import pytest 9 10# ------------------------------------------------------------------------------- 11# Add --ceed command line argument 12# ------------------------------------------------------------------------------- 13 14 15def pytest_addoption(parser): 16 parser.addoption("--ceed", action="store", default='/cpu/self/ref/blocked') 17 18 19@pytest.fixture(scope='session') 20def ceed_resource(request): 21 ceed_resource = request.config.option.ceed 22 23 return ceed_resource 24 25# ------------------------------------------------------------------------------- 26