From patchwork Thu Apr 3 11:04:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= X-Patchwork-Id: 14036768 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C9DA5C369A3 for ; Thu, 3 Apr 2025 11:07:06 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.936479.1337763 (Exim 4.92) (envelope-from ) id 1u0IPS-0006fP-Vr; Thu, 03 Apr 2025 11:06:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 936479.1337763; Thu, 03 Apr 2025 11:06:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u0IPS-0006ei-Pu; Thu, 03 Apr 2025 11:06:58 +0000 Received: by outflank-mailman (input) for mailman id 936479; Thu, 03 Apr 2025 11:06:56 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1u0IPQ-0005Cd-Sq for xen-devel@lists.xenproject.org; Thu, 03 Apr 2025 11:06:56 +0000 Received: from fhigh-a8-smtp.messagingengine.com (fhigh-a8-smtp.messagingengine.com [103.168.172.159]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c1070267-107b-11f0-9eaa-5ba50f476ded; Thu, 03 Apr 2025 13:06:56 +0200 (CEST) Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 34356114028B; Thu, 3 Apr 2025 07:06:55 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Thu, 03 Apr 2025 07:06:55 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Apr 2025 07:06:54 -0400 (EDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c1070267-107b-11f0-9eaa-5ba50f476ded DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1743678415; x=1743764815; bh=JB+Gi2GOjf nWi6se5uw8dD30frUlt29FZmXlnJ+NZkg=; b=YkQpgWNsuwEyBTgmsyCxEGOuNZ wX9wnq5xyyl8KJMnwdJJO0hMPtaKHY+Q1hULmt3Id8wLjbBZbaL3bgoWhj3UijXB IOEBRP7j1em9ac+kMloKd6FYQbr99ZJvxvVa2WIPh9+Cxh2NMbLLs/RJ4tzpaIHk WOfL0Xuy25ridiQ4CUqf82WF/6m2K9o/n6jiJYJitKuyNyKVq9bROXbCWzpZj/GS 48gx2/s2M8kC5mve1mzev5K3BcP3S3y4z9+HvWPWMFa4qk85PdBdf//6T60jwxma Y7c/vu6fbE+1nnG0Wgyt77McyVyNBC0e9oHtxuOAtY+OONLha6reLkSbhB+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1743678415; x= 1743764815; bh=JB+Gi2GOjfnWi6se5uw8dD30frUlt29FZmXlnJ+NZkg=; b=I BWGI52jRLSwPEtGzpduI5S8breXTIc+X3tCz2lJNoMaHEvbZcbobsH/WdtF1wTcl Kp0IZasiWuBr1gcCDiKoeUD78Pln5jUR1lROg+bL9nM4/dSxN75pHsSZWBRXJ2oH uAKotFVzSt89RIFaiJ2OPkATOFvQoX9HhKdIojV4/xFOL1u1e38gNU6Mjcqe2z/l 96mM/X9IHWKcUxr50Mh1ncjm1m6Uqbb5gxqGixFFdjBxlnJkB7PYJhOw7N0aYgik HH6Vo9I9GdqGoyIP71UpIUAcIycKcKzipMxX0CuEABIVBX+n05KGMi/OtPb2EikH qsGblNwydro0vupg8f7zg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddukeekfeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgjfhggtgfgsehtkeertder tdejnecuhfhrohhmpeforghrvghkucforghrtgiihihkohifshhkihdqifpkrhgvtghkih cuoehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtohhmqeen ucggtffrrghtthgvrhhnpefgueduhefgvdefheehudejheefudevueeghfekhfehleegve duteeuiedugffgffenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhl fhhrohhmpehmrghrmhgrrhgvkhesihhnvhhishhisghlvghthhhinhhgshhlrggsrdgtoh hmpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeig vghnqdguvghvvghlsehlihhsthhsrdigvghnphhrohhjvggtthdrohhrghdprhgtphhtth hopegrnhgurhgvfidrtghoohhpvghrfeestghithhrihigrdgtohhmpdhrtghpthhtohep mhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomhdprhgtph htthhopegtrghrughovgestggrrhguohgvrdgtohhmpdhrtghpthhtohepshhsthgrsggv lhhlihhniheskhgvrhhnvghlrdhorhhg X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , =?utf-8?q?Marek_Marczykowski-?= =?utf-8?q?G=C3=B3recki?= , Doug Goldstein , Stefano Stabellini Subject: [PATCH v1 07/11] ci: wait for the network interface in PCI passthrough tests Date: Thu, 3 Apr 2025 13:04:42 +0200 Message-ID: <726b40daa70f376f928c559b061e002c8cc2005f.1743678257.git-series.marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 The network driver initializes asynchronously, and it may not be ready yet by the time the startup script is called. This is especially the case for USB network adapter (where the PCI device is the USB controller) in the upcoming runner. Don't bother about separate timeout - test timeout will cover this part too. Signed-off-by: Marek Marczykowski-Górecki Reviewed-by: Stefano Stabellini --- automation/scripts/qubes-x86-64.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-x86-64.sh index 822b81d186a7..6d2c170d1ee1 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -104,6 +104,7 @@ on_reboot = "destroy" domU_check=" set -x -e interface=eth0 +while ! [ -e \"/sys/class/net/\$interface\" ]; do sleep 1; done ip link set \"\$interface\" up timeout 30s udhcpc -i \"\$interface\" pingip=\$(ip -o -4 r show default|cut -f 3 -d ' ')