From: Kyr Shatskyy Date: Fri, 10 Oct 2025 19:37:21 +0000 (+0200) Subject: qa/tasks/workunit: fix no module named 'pipes' X-Git-Tag: testing/wip-jcollin-testing-20251121.055747-tentacle~9^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=98b43131e96ba3fbd017c4f9b4fa0e2cc8a7e33c;p=ceph-ci.git qa/tasks/workunit: fix no module named 'pipes' Python 3.13 finally dropped the 'pipes' module, replacing it with shlex. Fixes: https://tracker.ceph.com/issues/73498 Signed-off-by: Kyr Shatskyy (cherry picked from commit da40484b9577aba21833e6b09c6129fe2d3c596c) --- diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 4fd82eaea9d..65a90c2e1af 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -2,7 +2,6 @@ Workunit task -- Run ceph on sets of specific clients """ import logging -import pipes import os import re import shlex @@ -405,7 +404,7 @@ def _run_tests(ctx, refspec, role, tests, env, basedir, ] if env is not None: for var, val in env.items(): - quoted_val = pipes.quote(val) + quoted_val = shlex.quote(val) env_arg = '{var}={val}'.format(var=var, val=quoted_val) args.append(run.Raw(env_arg)) if coverage_and_limits: