From nobody Tue Nov 26 16:15:37 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=virtuozzo.com ARC-Seal: i=1; a=rsa-sha256; t=1706113442; cv=none; d=zohomail.com; s=zohoarc; b=VkySSqytQWqlmAlZTRaHFfnPO+vjWmK/KK/QPZBCgFxtPhJL1bm1trls+vqUwFcAdSMh6hcRXnW0ouXoqNatiJ8a4QBLPDkSfTguF+XvmkEtmzqv2h9xTgFltr3UY41vtmW6ML/dqAS2gXEWJTllytRcViPI/Q46vJBUTZMibY0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706113442; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=GqeLkuvsy7n5AiCTUocuntwa1Yir5gbh40eQKHcdIY8=; b=Mu99dHBczyZyEOO4frpVdW7C5c838+BnTCfmuiKYXSZXyS6D9j9Lr065IwCgr+18npi4H1Jbo18Y3H8WuH/P77q6IDTvrop5iSyTdUJf2MPvZuA2wJ68LG/PQQeQLP3bflCBAstHHFqOQAXbvht8pz2rYpqYqWTO82HtV4W1xOY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 170611344209231.654715192918275; Wed, 24 Jan 2024 08:24:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSg1q-00025H-JD; Wed, 24 Jan 2024 11:23:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSg1o-00024N-QP; Wed, 24 Jan 2024 11:23:04 -0500 Received: from relay.virtuozzo.com ([130.117.225.111]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSg1m-0008R4-Ry; Wed, 24 Jan 2024 11:23:04 -0500 Received: from [130.117.225.1] (helo=dev005.ch-qa.vzint.dev) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1rSg1H-00AnY7-2f; Wed, 24 Jan 2024 17:22:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-Id:Date:Subject:From: Content-Type; bh=GqeLkuvsy7n5AiCTUocuntwa1Yir5gbh40eQKHcdIY8=; b=ur7rjalTXcTa H0aULwkXP4/oVjab0dRkV5SRIX1y+tBfkDSCdkBH+zCkyOiA0QnWxpne07QPkOZhQEy/rX9QZU+u5 qEyyR6FdRjQ+2daY2sQPhV+ZKSUY+0bX7pZONyYJlBt9XE8PKWNd/SHMYZpnzsQi2aMtO1yCZ+Vwv DA1oI05nR0pNnGw/pnfBA00NCx8fQq9HouYXgzXUIzJEaG6rM//hKLclKQYq7GrTgsurXBOa6LwOr NL/ze8P70SA9p+y5ZyVh+wioQG8U3i3x2DQ4lKaUmvPo/WAh+/rD/eHHncD8noV/RuchVD2dSsEpR 2WhFevTA0/PMyRFQkLX6Nw==; From: Andrey Drobyshev To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, hreitz@redhat.com, kwolf@redhat.com, eblake@redhat.com, andrey.drobyshev@virtuozzo.com, den@virtuozzo.com Subject: [PATCH] iotests/277: Use iotests.sock_dir for socket creation Date: Wed, 24 Jan 2024 18:22:57 +0200 Message-Id: <20240124162257.168325-1-andrey.drobyshev@virtuozzo.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=130.117.225.111; envelope-from=andrey.drobyshev@virtuozzo.com; helo=relay.virtuozzo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @virtuozzo.com) X-ZM-MESSAGEID: 1706113444267100007 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Eric Blake --- tests/qemu-iotests/277 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/277 b/tests/qemu-iotests/277 index 24833e7eb6..4224202ac2 100755 --- a/tests/qemu-iotests/277 +++ b/tests/qemu-iotests/277 @@ -27,7 +27,8 @@ from iotests import file_path, log iotests.script_initialize() =20 =20 -nbd_sock, conf_file =3D file_path('nbd-sock', 'nbd-fault-injector.conf') +conf_file =3D file_path('nbd-fault-injector.conf') +nbd_sock =3D file_path('nbd-sock', base_dir=3Diotests.sock_dir) =20 =20 def make_conf_file(event): --=20 2.39.3