Skip to content

Commit eefba65

Browse files
spuiukanoopcs9
authored andcommitted
Makefile: add target to run unprivileged tests
Add a Makefile target to simply run tests which do not require privileged access. Signed-off-by: Sachin Prabhu <[email protected]>
1 parent f53d5d3 commit eefba65

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ check-flake8:
2929
.PHONY: check-black
3030
check-black:
3131
$(call runtox, "black")
32+
33+
.PHONY: test-unprivileged
34+
test-unprivileged:
35+
$(call runtox, "pytest-unprivileged")

tox.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ deps =
1818
pytest-randomly
1919
commands = pytest -vrfEsxXpP testcases/
2020

21+
[testenv:pytest-unprivileged]
22+
deps =
23+
pytest
24+
pyyaml
25+
pytest-randomly
26+
commands = pytest -vrfEsxXpP -k 'not privileged' testcases/
27+
2128
[testenv:sanity]
2229
deps =
2330
pytest

0 commit comments

Comments
 (0)