mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-23 16:02:10 +00:00
wip: able to launch gaudi tests
This commit is contained in:
parent
918b29a0af
commit
23fe77f059
@ -94,6 +94,14 @@ def pytest_collection_modifyitems(config, items):
|
|||||||
item.add_marker(pytest.mark.skip(reason="requires --gaudi to run"))
|
item.add_marker(pytest.mark.skip(reason="requires --gaudi to run"))
|
||||||
|
|
||||||
selectors.append(skip_not_gaudi)
|
selectors.append(skip_not_gaudi)
|
||||||
|
else:
|
||||||
|
|
||||||
|
def skip_gaudi(item):
|
||||||
|
if "gaudi" in item.keywords:
|
||||||
|
item.add_marker(pytest.mark.skip(reason="requires --gaudi to run"))
|
||||||
|
|
||||||
|
selectors.append(skip_gaudi)
|
||||||
|
|
||||||
if config.getoption("--neuron"):
|
if config.getoption("--neuron"):
|
||||||
|
|
||||||
def skip_not_neuron(item):
|
def skip_not_neuron(item):
|
||||||
@ -109,12 +117,8 @@ def pytest_collection_modifyitems(config, items):
|
|||||||
if "neuron" in item.keywords:
|
if "neuron" in item.keywords:
|
||||||
item.add_marker(pytest.mark.skip(reason="requires --neuron to run"))
|
item.add_marker(pytest.mark.skip(reason="requires --neuron to run"))
|
||||||
|
|
||||||
def skip_gaudi(item):
|
|
||||||
if "gaudi" in item.keywords:
|
|
||||||
item.add_marker(pytest.mark.skip(reason="requires --gaudi to run"))
|
|
||||||
|
|
||||||
selectors.append(skip_neuron)
|
selectors.append(skip_neuron)
|
||||||
selectors.append(skip_gaudi)
|
|
||||||
for item in items:
|
for item in items:
|
||||||
for selector in selectors:
|
for selector in selectors:
|
||||||
selector(item)
|
selector(item)
|
||||||
|
Loading…
Reference in New Issue
Block a user