mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Merge pull request #33769 from lxbsz/qa_vstart_runner_os
qa/vstart_runner.py: add os and arch properties support Reviewed-by: Patrick Donnelly <pdonnell@redhat.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
f80ce9ec07
@ -51,6 +51,7 @@ import platform
|
||||
from teuthology import misc
|
||||
from teuthology.orchestra.run import Raw, quote
|
||||
from teuthology.orchestra.daemon import DaemonGroup
|
||||
from teuthology.orchestra.remote import Remote
|
||||
from teuthology.config import config as teuth_config
|
||||
import six
|
||||
import logging
|
||||
@ -239,6 +240,9 @@ class LocalRemote(object):
|
||||
Run this inside your src/ dir!
|
||||
"""
|
||||
|
||||
os = Remote.os
|
||||
arch = Remote.arch
|
||||
|
||||
def __init__(self):
|
||||
self.name = "local"
|
||||
self.hostname = "localhost"
|
||||
@ -413,7 +417,7 @@ class LocalRemote(object):
|
||||
remote_date = remote.sh('date')
|
||||
"""
|
||||
if 'stdout' not in kwargs:
|
||||
kwargs['stdout'] = BytesIO()
|
||||
kwargs['stdout'] = StringIO()
|
||||
if 'args' not in kwargs:
|
||||
kwargs['args'] = script
|
||||
proc = self.run(**kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user