Skip to content

Commit

Permalink
Add skip for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Nov 29, 2023
1 parent 1a233f4 commit 2978b81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/base/injector/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ def test_container(docker_client: docker.DockerClient, command: str):
p = Path(p)
if (p / "cmdline").read_text().replace("\x00", " ").strip() == command.strip():
pid = p.name
try:
(p / "cgroup").read_text().strip().split("\n")
except PermissionError as e:
pytest.skip(
"Low privileges for the current user to inspect docker container's process"
)

assert pid

Expand Down

0 comments on commit 2978b81

Please sign in to comment.