From nobody Mon Feb 9 16:49:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; 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 ARC-Seal: i=1; a=rsa-sha256; t=1615307520; cv=none; d=zohomail.com; s=zohoarc; b=J7g/V62MruktEqFVpt7hVvIJKI53XqVzWvPoSfCHneQJ3Uzb4HRLyDpMfigW5NLbVcqI5N78BHeHyeywk8c4CqvJns8+VpTcCtqBjjZxMseNu1a+Tc0XSgjq3nJ8QdGrr+vkj/TWNi+89IlSJNY2pTFkHADPSwL8mSA00y6cJjU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615307520; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=9FTbQayRpdXEKsSJwA/Gos8NTplv01r6aMaHqAiM1TE=; b=k890h5ZevVcl7E7GSHgwH5cFqH/lo004J31g0/L/FIDTVRHa5GgeN7yPgzm6MQE4a6aTtBliCBxugohBNKdSHYYKGY9gxv/opRUziZ/pd+xfmnZr3PNPfbqcUDJfnY34tywJNeGlIbYDeu44cdXKrHIFDHxd3GIObaKTLY4LVMc= ARC-Authentication-Results: i=1; mx.zohomail.com; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1615307519595690.5768279685452; Tue, 9 Mar 2021 08:31:59 -0800 (PST) Received: from localhost ([::1]:50694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJfH4-0000An-Ad for importer@patchew.org; Tue, 09 Mar 2021 11:31:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJeoA-0005jx-8X for qemu-devel@nongnu.org; Tue, 09 Mar 2021 11:02:06 -0500 Received: from prt-mail.chinatelecom.cn ([42.123.76.220]:51939 helo=chinatelecom.cn) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJenz-0004iW-Bv for qemu-devel@nongnu.org; Tue, 09 Mar 2021 11:02:05 -0500 Received: from clientip-125.69.43.3?logid-7e1d845f94314557add15ddf9f260b58 (unknown [172.18.0.218]) by chinatelecom.cn (HERMES) with SMTP id 8515C280088; Wed, 10 Mar 2021 00:01:30 +0800 (CST) Received: from ([172.18.0.218]) by App0025 with ESMTP id 7e1d845f94314557add15ddf9f260b58 for qemu-devel@nongnu.org; Wed Mar 10 00:01:32 2021 HMM_SOURCE_IP: 172.18.0.218:9800.470873947 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP X-189-SAVE-TO-SEND: +huangy81@chinatelecom.cn X-Transaction-ID: 7e1d845f94314557add15ddf9f260b58 X-filter-score: filter<0> X-Real-From: huangy81@chinatelecom.cn X-Receive-IP: 172.18.0.218 X-MEDUSA-Status: 0 From: huangy81@chinatelecom.cn To: qemu-devel Subject: [PATCH] tests/migration: fix unix socket migration Date: Wed, 10 Mar 2021 00:00:59 +0800 Message-Id: X-Mailer: git-send-email 1.8.3.1 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=42.123.76.220; envelope-from=huangy81@chinatelecom.cn; helo=chinatelecom.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hyman , "Daniel P. Berrange" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Hyman The test aborts and error message as the following be throwed: "No such file or directory: '/var/tmp/qemu-migrate-{pid}.migrate", when the unix socket migration test nearly done. The reason is qemu removes the unix socket file after migration before guestperf.py script do it. So pre-check if the socket file exists when removing it to prevent the guestperf program from aborting. Signed-off-by: Hyman Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta --- tests/migration/guestperf/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migration/guestperf/engine.py b/tests/migration/guestper= f/engine.py index 83bfc3b..86d4f21 100644 --- a/tests/migration/guestperf/engine.py +++ b/tests/migration/guestperf/engine.py @@ -405,7 +405,7 @@ def run(self, hardware, scenario, result_dir=3Dos.getcw= d()): progress_history =3D ret[0] qemu_timings =3D ret[1] vcpu_timings =3D ret[2] - if uri[0:5] =3D=3D "unix:": + if uri[0:5] =3D=3D "unix:" and os.path.exists(uri[5:]): os.remove(uri[5:]) if self._verbose: print("Finished migration") --=20 1.8.3.1