1*3d8e8822SJeremy L Thompson# Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors 2*3d8e8822SJeremy L Thompson# All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 30ef72598Sjeremylt# 4*3d8e8822SJeremy L Thompson# SPDX-License-Identifier: BSD-2-Clause 50ef72598Sjeremylt# 6*3d8e8822SJeremy L Thompson# This file is part of CEED: http://github.com/ceed 70ef72598Sjeremylt 80ef72598Sjeremyltimport pytest 90ef72598Sjeremylt 100ef72598Sjeremylt# ------------------------------------------------------------------------------- 110ef72598Sjeremylt# Add --ceed command line argument 120ef72598Sjeremylt# ------------------------------------------------------------------------------- 130ef72598Sjeremylt 140ef72598Sjeremylt 150ef72598Sjeremyltdef pytest_addoption(parser): 160ef72598Sjeremylt parser.addoption("--ceed", action="store", default='/cpu/self/ref/blocked') 170ef72598Sjeremylt 180ef72598Sjeremylt 190ef72598Sjeremylt@pytest.fixture(scope='session') 200ef72598Sjeremyltdef ceed_resource(request): 210ef72598Sjeremylt ceed_resource = request.config.option.ceed 220ef72598Sjeremylt 230ef72598Sjeremylt return ceed_resource 240ef72598Sjeremylt 250ef72598Sjeremylt# ------------------------------------------------------------------------------- 26