aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/qemu_test/cmd.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2024-12-17 15:59:50 +0000
committerThomas Huth <thuth@redhat.com>2024-12-17 19:39:53 +0100
commitc5be9dd32f35d049983cc42c3835cc3d8167f13f (patch)
tree87e82385c3288ef69adf6df7e4367d3e625437e9 /tests/functional/qemu_test/cmd.py
parent37e9b19c34d9500164e33ccf377e1830e956bca0 (diff)
downloadqemu-c5be9dd32f35d049983cc42c3835cc3d8167f13f.zip
qemu-c5be9dd32f35d049983cc42c3835cc3d8167f13f.tar.gz
qemu-c5be9dd32f35d049983cc42c3835cc3d8167f13f.tar.bz2
tests/functional: remove now unused 'run_cmd' helper
All usage has been replaced by direct 'subprocess' helpers. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <20241217155953.3950506-30-berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/qemu_test/cmd.py')
-rw-r--r--tests/functional/qemu_test/cmd.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/functional/qemu_test/cmd.py b/tests/functional/qemu_test/cmd.py
index c8971de..dc5f422 100644
--- a/tests/functional/qemu_test/cmd.py
+++ b/tests/functional/qemu_test/cmd.py
@@ -14,7 +14,6 @@
import logging
import os
import os.path
-import subprocess
def which(tool):
@@ -28,16 +27,6 @@ def which(tool):
return p
return None
-def run_cmd(args):
- subp = subprocess.Popen(args,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- universal_newlines=True)
- stdout, stderr = subp.communicate()
- ret = subp.returncode
-
- return (stdout, stderr, ret)
-
def is_readable_executable_file(path):
return os.path.isfile(path) and os.access(path, os.R_OK | os.X_OK)