1*9ba83ac0SJeremy L Thompson# Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors 27b3ff069SJeremy L Thompson# All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 37b3ff069SJeremy L Thompson# 47b3ff069SJeremy L Thompson# SPDX-License-Identifier: BSD-2-Clause 57b3ff069SJeremy L Thompson# 67b3ff069SJeremy L Thompson# This file is part of CEED: http://github.com/ceed 77b3ff069SJeremy L Thompson 87b3ff069SJeremy L Thompsonimport pytest 97b3ff069SJeremy L Thompson 107b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 117b3ff069SJeremy L Thompson# Add --ceed command line argument 127b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 137b3ff069SJeremy L Thompson 147b3ff069SJeremy L Thompson 157b3ff069SJeremy L Thompsondef pytest_addoption(parser): 167b3ff069SJeremy L Thompson parser.addoption("--ceed", action="store", default='/cpu/self/ref/blocked') 177b3ff069SJeremy L Thompson 187b3ff069SJeremy L Thompson 197b3ff069SJeremy L Thompson@pytest.fixture(scope='session') 207b3ff069SJeremy L Thompsondef ceed_resource(request): 217b3ff069SJeremy L Thompson ceed_resource = request.config.option.ceed 227b3ff069SJeremy L Thompson 237b3ff069SJeremy L Thompson return ceed_resource 247b3ff069SJeremy L Thompson 257b3ff069SJeremy L Thompson# ------------------------------------------------------------------------------- 26