提交 7b793e0c 编写于 作者: L Lukáš Doktor

Revert "process.py: Add subprocess stdin.write() method"

The commit 3a66bcbf is causing the
"selftests.functional.test_basic.RunnerOperationTest.test_read" selftest
to fail.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 ca3fe0d1
......@@ -531,7 +531,6 @@ class SubProcess(object):
else:
stderr = subprocess.PIPE
self._popen = subprocess.Popen(cmd,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=stderr,
shell=self.shell,
......@@ -702,16 +701,6 @@ class SubProcess(object):
self._fill_results(rc)
return rc
def stdin_write(self, value, flush=False):
"""
Call the subprocess stdin.write() method for any input to subprocess
Optionally flush the input buffer
"""
self._init_subprocess()
self._popen.stdin.write(value)
if flush:
self._popen.stdin.flush()
def stop(self):
"""
Stop background subprocess.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册