fix disable-bls default value
This commit is contained in:
parent
c3ae85387c
commit
76c96782e2
|
@ -31,7 +31,7 @@ def pytest_addoption(parser):
|
||||||
help="config: make the pyspec use the specified configuration"
|
help="config: make the pyspec use the specified configuration"
|
||||||
)
|
)
|
||||||
parser.addoption(
|
parser.addoption(
|
||||||
"--disable-bls", action="store_true",
|
"--disable-bls", action="store_true", default=False,
|
||||||
help="bls-default: make tests that are not dependent on BLS run without BLS"
|
help="bls-default: make tests that are not dependent on BLS run without BLS"
|
||||||
)
|
)
|
||||||
parser.addoption(
|
parser.addoption(
|
||||||
|
@ -50,11 +50,7 @@ def config(request):
|
||||||
|
|
||||||
@fixture(autouse=True)
|
@fixture(autouse=True)
|
||||||
def bls_default(request):
|
def bls_default(request):
|
||||||
try:
|
disable_bls = request.config.getoption("--disable-bls")
|
||||||
disable_bls = request.config.getoption("--disable-bls")
|
|
||||||
except ValueError:
|
|
||||||
disable_bls = False
|
|
||||||
|
|
||||||
if disable_bls:
|
if disable_bls:
|
||||||
context.DEFAULT_BLS_ACTIVE = False
|
context.DEFAULT_BLS_ACTIVE = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue