mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
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 <kyrylo.shatskyy@clyso.com>
This commit is contained in:
parent
5caea33c38
commit
da40484b95
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user