Reapply "test_driver: support Python 3.8 for now"

Re-apply commit ec27b418e after it was accidentally reverted in
5102c8b137 (Update littlecheck, 2025-10-11),
fixing a hang in e.g.

	sudo docker/docker_run_tests.sh docker/jammy.Dockerfile
This commit is contained in:
Johannes Altmanninger
2025-06-13 12:23:50 +02:00
parent 84b52a3ed1
commit ec7d20b347

View File

@@ -390,8 +390,9 @@ def runproc(cmd, env=None):
async def runproc_async(cmd, env=None, cwd=None):
"""Wrapper around subprocess.Popen to save typing"""
PIPE = asyncio.subprocess.PIPE
DEVNULL = asyncio.subprocess.DEVNULL
return await asyncio.create_subprocess_shell(
cmd, stdin=PIPE, stdout=PIPE, stderr=PIPE, env=env, cwd=cwd
cmd, stdin=DEVNULL, stdout=PIPE, stderr=PIPE, env=env, cwd=cwd
)