From: Kotresh HR Date: Tue, 14 Dec 2021 10:13:41 +0000 (+0530) Subject: qa: Fix a few tracebacks in vstart_runner X-Git-Tag: v18.0.0~977^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c57a13f8bef906588b6d7a6b846d9ab51068c37e;p=ceph.git qa: Fix a few tracebacks in vstart_runner 1. CommandFailedError: Command failed with status 127: \ ['None/archive/coverage', 'rados' ...] 2. TypeError: a bytes-like object is required, not '_io.BytesIO' Fixes: https://tracker.ceph.com/issues/53601 Signed-off-by: Kotresh HR --- diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 22106ed2dd3a0..e7b393833dc5c 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -423,7 +423,8 @@ class LocalRemote(object): # Filter out helper tools that don't exist in a vstart environment args = [a for a in args if a not in ('adjust-ulimits', - 'ceph-coverage')] + 'ceph-coverage', + 'None/archive/coverage')] # Adjust binary path prefix if given a bare program name if not isinstance(args[0], Raw) and "/" not in args[0]: @@ -469,7 +470,7 @@ class LocalRemote(object): elif isinstance(stdin, StringIO): subproc.stdin.write(bytes(stdin.getvalue(),encoding='utf8')) else: - subproc.stdin.write(stdin) + subproc.stdin.write(stdin.getvalue()) proc = LocalRemoteProcess( args, subproc, check_status,