Skip to content

Commit f53d5d3

Browse files
spuiukanoopcs9
authored andcommitted
testcases: mark certain tests as privileged
These tests require privileged access to allow them to mount the shares before we can run the tests on them. Signed-off-by: Sachin Prabhu <[email protected]>
1 parent 97a58b6 commit f53d5d3

File tree

6 files changed

+5
-2
lines changed

6 files changed

+5
-2
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ check-flake8:
2929
.PHONY: check-black
3030
check-black:
3131
$(call runtox, "black")
32-

testcases/containers/test_containers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def generate_containers_test() -> typing.List[typing.Tuple[str, str, str]]:
7575
return arr
7676

7777

78+
@pytest.mark.privileged
7879
@pytest.mark.parametrize(
7980
"ipaddr,share_name,test",
8081
generate_containers_test(),

testcases/misc/test_dbm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def _run_dbm_consistency_checks(base_path: Path) -> None:
101101
shutil.rmtree(base_path, ignore_errors=True)
102102

103103

104+
@pytest.mark.privileged
104105
@pytest.mark.parametrize("setup_mount", gen_params(), indirect=True)
105106
def test_dbm_consistency(setup_mount: Path) -> None:
106107
base = setup_mount / "dbm-consistency"

testcases/misc/test_io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def _perform_io_consistency_check(directory: Path) -> None:
132132
_check_io_consistency(directory)
133133

134134

135+
@pytest.mark.privileged
135136
@pytest.mark.parametrize("setup_mount", gen_params(), indirect=True)
136137
def test_check_io_consistency(setup_mount: Path) -> None:
137138
base = setup_mount / "test_io_consistency"

testcases/misc/test_stress.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def _run_stress_tests(directory: Path) -> None:
5656
shutil.rmtree(directory, ignore_errors=True)
5757

5858

59+
@pytest.mark.privileged
5960
@pytest.mark.parametrize("setup_mount", gen_params(), indirect=True)
6061
def test_check_mnt_stress(setup_mount: Path) -> None:
6162
base = setup_mount / "stress-test"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ deps =
1616
pytest
1717
pyyaml
1818
pytest-randomly
19-
commands = pytest -vrfEsxXpP testcases/consistency testcases/smbtorture testcases/containers testcases/misc
19+
commands = pytest -vrfEsxXpP testcases/
2020

2121
[testenv:sanity]
2222
deps =

0 commit comments

Comments
 (0)