From 7b793e0cc91b94adef7321996d223721230a5f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Tue, 6 Feb 2018 13:13:42 +0100 Subject: [PATCH] Revert "process.py: Add subprocess stdin.write() method" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commit 3a66bcbfe36cbc6246232f3b1c5b3d2ad121917c is causing the "selftests.functional.test_basic.RunnerOperationTest.test_read" selftest to fail. Signed-off-by: Lukáš Doktor --- avocado/utils/process.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/avocado/utils/process.py b/avocado/utils/process.py index e1d733b7..16bc87e4 100644 --- a/avocado/utils/process.py +++ b/avocado/utils/process.py @@ -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. -- GitLab