forked from TrueCloudLab/frostfs-testcases
Pass shell where it was missed
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
parent
4b3a5f60c4
commit
8e8a5b6efd
3 changed files with 44 additions and 19 deletions
|
@ -48,7 +48,10 @@ def hosting(configure_testlib) -> Hosting:
|
|||
|
||||
@pytest.fixture(scope="session")
|
||||
def require_multiple_hosts(hosting: Hosting):
|
||||
"""Fixture that is applied to tests that require that environment has multiple hosts."""
|
||||
"""Designates tests that require environment with multiple hosts.
|
||||
|
||||
These tests will be skipped on an environment that has only 1 host.
|
||||
"""
|
||||
if len(hosting.hosts) <= 1:
|
||||
pytest.skip("Test only works with multiple hosts")
|
||||
yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue