Переглянути джерело

iotests/277: Use iotests.sock_dir for socket creation

If socket path is too long (longer than 108 bytes), socket can't be
opened.  This might lead to failure when test dir path is long enough.
Make sure socket is created in iotests.sock_dir to avoid such a case.

This commit basically aligns iotests/277 with the rest of iotests.

Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Message-ID: <20240124162257.168325-1-andrey.drobyshev@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Andrey Drobyshev 1 рік тому
батько
коміт
acf2b9fce9
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      tests/qemu-iotests/277

+ 2 - 1
tests/qemu-iotests/277

@@ -27,7 +27,8 @@ from iotests import file_path, log
 iotests.script_initialize()
 iotests.script_initialize()
 
 
 
 
-nbd_sock, conf_file = file_path('nbd-sock', 'nbd-fault-injector.conf')
+conf_file = file_path('nbd-fault-injector.conf')
+nbd_sock = file_path('nbd-sock', base_dir=iotests.sock_dir)
 
 
 
 
 def make_conf_file(event):
 def make_conf_file(event):