[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] automation: xilinx: Set up bridging only for a default test case


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Thu, 27 Apr 2023 14:05:52 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/Yco+D0ZQTHFIKK4jqyOrQ0GQY+dKN40P9v5wpwSnVw=; b=WI7Jq9waBXj1u3xx2MPWj3sIPMIpANwc4BoeSHfPuwyxtr/7+BhPUXJ9gqHc2ie1aqyrmhd8wAJVoSlNWTc+oXtP/ouaXZ/ZkthGc6/ujEx86iFyZYk5j2peKZaC/rXQnd0BuKnGdXVRtwShJzn2Z21czbPpbcUqXHHERGf/udmMdtuJBIPu8StJX8ZRinztCsfn8ElD7fAtG9jmSTKddn/LSaG4uPNKbT0jwhtevTONGO0/tGqhnVu2TugNEN111hGbYEavGea8PWfJxMWTDyBuFIGyZDI1S5uy8pztqEchgSbRd4qtI9FRWHcwcEPj8XjGM60qtO3MVObpWenzNg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VKYwXZB1Zmf5AQD3Ogl5wdp0UjYnG5obue5G/OY6ZNdRDWuKYIRO8CasvOO1qunIxOsgbAjMEwKwy8oPcBBGvnQw6COA4TI1qpAqJVb72NW14hWBYToWxe1T6VDLQT6WLq31PHUQBQcjb58CWfeOd4lxZxH3OeR/z5hQnUuCVO0qLQzSRYFiPHU5G624qixL0XvjjYAw4F9zbpQqotC+IdcWsXLdGjOlhobM9d2l6FAFi/f6lTNua15qbitMMpfLaU2V3JHIR16e+ztqHmJUxXk4ujpnTD9y5+7LRujj+rVtjMZDtTaHtuVyYO6xTiVJSJ7Naaq0iAfX1Bjfh0WedQ==
  • Cc: Michal Orzel <michal.orzel@xxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 27 Apr 2023 12:06:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

At the moment, setting up a network bridge is unconditionally placed
in the dom0 xen.start script. Since we might want to use the network
interface (there is only one working GEM on the board) for other tests
(e.g. passthrough), move the bridge setup to a dom0_check variable being
part of a default ping test (i.e. if no test variant specified).

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
---
 automation/scripts/xilinx-smoke-dom0less-arm64.sh | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/automation/scripts/xilinx-smoke-dom0less-arm64.sh 
b/automation/scripts/xilinx-smoke-dom0less-arm64.sh
index 82158ab7ea1b..73ba251f4cc1 100755
--- a/automation/scripts/xilinx-smoke-dom0less-arm64.sh
+++ b/automation/scripts/xilinx-smoke-dom0less-arm64.sh
@@ -6,6 +6,14 @@ test_variant=$1
 
 if [ -z "${test_variant}" ]; then
     passed="ping test passed"
+    dom0_check="
+brctl addbr xenbr0
+brctl addif xenbr0 eth0
+ifconfig eth0 up
+ifconfig xenbr0 up
+ifconfig xenbr0 192.168.0.1
+xl network-attach 1 type=vif
+"
     domU_check="
 until ifconfig eth0 192.168.0.2 &> /dev/null && ping -c 10 192.168.0.1; do
     sleep 30
@@ -51,13 +59,6 @@ bash /etc/init.d/xencommons start
 
 /usr/local/lib/xen/bin/init-dom0less
 
-brctl addbr xenbr0
-brctl addif xenbr0 eth0
-ifconfig eth0 up
-ifconfig xenbr0 up
-ifconfig xenbr0 192.168.0.1
-
-xl network-attach 1 type=vif
 ${dom0_check}
 " > etc/local.d/xen.start
 chmod +x etc/local.d/xen.start
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.