summaryrefslogtreecommitdiff
path: root/testenv
diff options
context:
space:
mode:
Diffstat (limited to 'testenv')
-rw-r--r--testenv/tests/plugins/auth/test_pam.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/testenv/tests/plugins/auth/test_pam.py b/testenv/tests/plugins/auth/test_pam.py
index a2cc32fa..49be05a2 100644
--- a/testenv/tests/plugins/auth/test_pam.py
+++ b/testenv/tests/plugins/auth/test_pam.py
@@ -20,6 +20,7 @@
# ========================================================================== #
+import os
import asyncio
import pwd
@@ -29,8 +30,6 @@ from typing import Optional
import pytest
-from kvmd import aioproc
-
from . import get_configured_auth_service
@@ -45,7 +44,7 @@ async def _run_process(cmd: str, input: Optional[str]=None) -> None: # pylint:
proc = await asyncio.create_subprocess_exec(
*cmd.split(" "),
stdin=(asyncio.subprocess.PIPE if input is not None else None),
- preexec_fn=aioproc.ignore_sigint,
+ preexec_fn=os.setpgrp,
)
await proc.communicate(input.encode() if input is not None else None)
assert proc.returncode == 0