Skip to content

Commit c163c72

Browse files
committed
python, iotests: remove socket_scm_helper
It's not used anymore, now. Signed-off-by: John Snow <[email protected]> Reviewed-by: Hanna Reitz <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Message-id: [email protected] Signed-off-by: John Snow <[email protected]>
1 parent 514d00d commit c163c72

File tree

8 files changed

+1
-161
lines changed

8 files changed

+1
-161
lines changed

python/qemu/machine/machine.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ def __init__(self,
9898
name: Optional[str] = None,
9999
base_temp_dir: str = "/var/tmp",
100100
monitor_address: Optional[SocketAddrT] = None,
101-
socket_scm_helper: Optional[str] = None,
102101
sock_dir: Optional[str] = None,
103102
drain_console: bool = False,
104103
console_log: Optional[str] = None,
@@ -113,7 +112,6 @@ def __init__(self,
113112
@param name: prefix for socket and log file names (default: qemu-PID)
114113
@param base_temp_dir: default location where temp files are created
115114
@param monitor_address: address for QMP monitor
116-
@param socket_scm_helper: helper program, required for send_fd_scm()
117115
@param sock_dir: where to create socket (defaults to base_temp_dir)
118116
@param drain_console: (optional) True to drain console socket to buffer
119117
@param console_log: (optional) path to console log file
@@ -134,7 +132,6 @@ def __init__(self,
134132
self._base_temp_dir = base_temp_dir
135133
self._sock_dir = sock_dir or self._base_temp_dir
136134
self._log_dir = log_dir
137-
self._socket_scm_helper = socket_scm_helper
138135

139136
if monitor_address is not None:
140137
self._monitor_address = monitor_address

python/qemu/machine/qtest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def __init__(self,
115115
wrapper: Sequence[str] = (),
116116
name: Optional[str] = None,
117117
base_temp_dir: str = "/var/tmp",
118-
socket_scm_helper: Optional[str] = None,
119118
sock_dir: Optional[str] = None,
120119
qmp_timer: Optional[float] = None):
121120
# pylint: disable=too-many-arguments
@@ -126,7 +125,6 @@ def __init__(self,
126125
sock_dir = base_temp_dir
127126
super().__init__(binary, args, wrapper=wrapper, name=name,
128127
base_temp_dir=base_temp_dir,
129-
socket_scm_helper=socket_scm_helper,
130128
sock_dir=sock_dir, qmp_timer=qmp_timer)
131129
self._qtest: Optional[QEMUQtestProtocol] = None
132130
self._qtest_path = os.path.join(sock_dir, name + "-qtest.sock")

tests/Makefile.include

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ check-acceptance: check-venv $(TESTS_RESULTS_DIR) get-vm-images
148148
check:
149149

150150
ifeq ($(CONFIG_TOOLS)$(CONFIG_POSIX),yy)
151-
QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
152151
check: check-block
153152
export PYTHON
154153
check-block: $(SRC_PATH)/tests/check-block.sh qemu-img$(EXESUF) \

tests/meson.build

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ if have_tools and 'CONFIG_VHOST_USER' in config_host and 'CONFIG_LINUX' in confi
6767
dependencies: [qemuutil, vhost_user])
6868
endif
6969

70-
if have_system and 'CONFIG_POSIX' in config_host
71-
subdir('qemu-iotests')
72-
endif
73-
7470
test('decodetree', sh,
7571
args: [ files('decode/check.sh'), config_host['PYTHON'], files('../scripts/decodetree.py') ],
7672
workdir: meson.current_source_dir() / 'decode',

tests/qemu-iotests/iotests.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@
107107

108108
qemu_valgrind = ['valgrind', valgrind_logfile, '--error-exitcode=99']
109109

110-
socket_scm_helper = os.environ.get('SOCKET_SCM_HELPER', 'socket_scm_helper')
111-
112110
luks_default_secret_object = 'secret,id=keysec0,data=' + \
113111
os.environ.get('IMGKEYSECRET', '')
114112
luks_default_key_secret_opt = 'key-secret=keysec0'
@@ -598,7 +596,6 @@ def __init__(self, path_suffix=''):
598596
super().__init__(qemu_prog, qemu_opts, wrapper=wrapper,
599597
name=name,
600598
base_temp_dir=test_dir,
601-
socket_scm_helper=socket_scm_helper,
602599
sock_dir=sock_dir, qmp_timer=timer)
603600
self._num_drives = 0
604601

tests/qemu-iotests/meson.build

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/qemu-iotests/socket_scm_helper.c

Lines changed: 0 additions & 136 deletions
This file was deleted.

tests/qemu-iotests/testenv.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class TestEnv(ContextManager['TestEnv']):
6868
env_variables = ['PYTHONPATH', 'TEST_DIR', 'SOCK_DIR', 'SAMPLE_IMG_DIR',
6969
'OUTPUT_DIR', 'PYTHON', 'QEMU_PROG', 'QEMU_IMG_PROG',
7070
'QEMU_IO_PROG', 'QEMU_NBD_PROG', 'QSD_PROG',
71-
'SOCKET_SCM_HELPER', 'QEMU_OPTIONS', 'QEMU_IMG_OPTIONS',
71+
'QEMU_OPTIONS', 'QEMU_IMG_OPTIONS',
7272
'QEMU_IO_OPTIONS', 'QEMU_IO_OPTIONS_NO_FMT',
7373
'QEMU_NBD_OPTIONS', 'IMGOPTS', 'IMGFMT', 'IMGPROTO',
7474
'AIOMODE', 'CACHEMODE', 'VALGRIND_QEMU',
@@ -140,7 +140,6 @@ def init_binaries(self) -> None:
140140
"""Init binary path variables:
141141
PYTHON (for bash tests)
142142
QEMU_PROG, QEMU_IMG_PROG, QEMU_IO_PROG, QEMU_NBD_PROG, QSD_PROG
143-
SOCKET_SCM_HELPER
144143
"""
145144
self.python = sys.executable
146145

@@ -174,10 +173,6 @@ def root(*names: str) -> str:
174173
if not isxfile(b):
175174
sys.exit('Not executable: ' + b)
176175

177-
helper_path = os.path.join(self.build_iotests, 'socket_scm_helper')
178-
if isxfile(helper_path):
179-
self.socket_scm_helper = helper_path # SOCKET_SCM_HELPER
180-
181176
def __init__(self, imgfmt: str, imgproto: str, aiomode: str,
182177
cachemode: Optional[str] = None,
183178
imgopts: Optional[str] = None,
@@ -303,7 +298,6 @@ def print_env(self) -> None:
303298
PLATFORM -- {platform}
304299
TEST_DIR -- {TEST_DIR}
305300
SOCK_DIR -- {SOCK_DIR}
306-
SOCKET_SCM_HELPER -- {SOCKET_SCM_HELPER}
307301
GDB_OPTIONS -- {GDB_OPTIONS}
308302
VALGRIND_QEMU -- {VALGRIND_QEMU}
309303
PRINT_QEMU_OUTPUT -- {PRINT_QEMU}

0 commit comments

Comments
 (0)