提交 bfe0dd1b 编写于 作者: L Lucas Meneghel Rodrigues 提交者: Cleber Rosa

avocado.utils.software_manager: Remove redirection

Let's remove an artifact from old times. The current
process APIs should handle stdout and stderr just fine.
Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
上级 790303c4
...@@ -301,10 +301,9 @@ class DpkgBackend(BaseBackend): ...@@ -301,10 +301,9 @@ class DpkgBackend(BaseBackend):
def check_installed(self, name): def check_installed(self, name):
if os.path.isfile(name): if os.path.isfile(name):
n_cmd = (self.lowlevel_base_cmd + ' -f ' + name + n_cmd = self.lowlevel_base_cmd + ' -f ' + name + ' Package'
' Package 2>/dev/null')
name = process.system_output(n_cmd) name = process.system_output(n_cmd)
i_cmd = self.lowlevel_base_cmd + " -s " + name + ' 2>/dev/null' i_cmd = self.lowlevel_base_cmd + " -s " + name
# Checking if package is installed # Checking if package is installed
package_status = process.system_output(i_cmd, ignore_status=True) package_status = process.system_output(i_cmd, ignore_status=True)
dpkg_installed = (self.INSTALLED_OUTPUT in package_status) dpkg_installed = (self.INSTALLED_OUTPUT in package_status)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册