]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/workunit: fix no module named 'pipes'
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Fri, 10 Oct 2025 19:37:21 +0000 (21:37 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Fri, 10 Oct 2025 19:39:54 +0000 (21:39 +0200)
Python 3.13 finally dropped the 'pipes' module,
replacing it with shlex.

Fixes: https://tracker.ceph.com/issues/73498
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
qa/tasks/workunit.py

index 4fd82eaea9df17b6df587ddbd2d82a8e43eba812..65a90c2e1afa00bc449a8b02d1c5d1f91ca5e15b 100644 (file)
@@ -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: