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

Re: [for-4.17 2/3] automation: qemu-smoke-arm64: Silence ifconfig error messages


  • To: Michal Orzel <michal.orzel@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Ayan Kumar Halder <ayankuma@xxxxxxx>
  • Date: Thu, 8 Sep 2022 10:09:25 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=BikOgYtUVL77xF+jLHmle+BEGw+kNHXT+lHOznmxu3o=; b=Ce6Jrt6/omn3gRHnMNlNFYnP8usz9kqNl8n8c38x32TRU0RSu5BJWh516MenwNKtxcvWb3dxEYZK/cm0AEe9Zaw4WstNE5ufmzrHnviF9Nd2lVvZACTXMJZVDN3KWElpjgke6AHZLL1UoKvwFTwHcEQwNRvePOetqoYH+hBW7bKovqaOS8eN7E7vRXLcqIR8it9HP5GVBXJFfQNPCt0n+WmcjTrz+GVOaZ/FQ47r2+Ws1fA9K2EUphbQlTFiE2XSmUPT53p0Aj54Y4ObNJM9PDo8SWrL+xliYAvOhz663WRSEPXzBUechPIs78KdNq9ySmyEJj0jFfPLwcR2WvXKow==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MwnCI2teHWcYpXtscT/aaWFg5elCwpWdHOtDueDd+H8FILaO5qT9pOx0mHzW4JNr2a/iwgwNjtv9iRnD2n7Qa4jzTlDkRdzm1N2VTsIDOtQrj2OhRQe2zHwT7FTT0DSPBNGH75nnzNtb5nvnMC7jgauQp0yffgJwN/3cnudL8yRnmCXzWal0KLt1m/N4bzSSQeTn9VAuATVi75HWu0qQ67Yh00h/OJ0TlluaP7PM8sN2D3oqeEl5PxF8Q18r7G3BlcaC6Zt9y9l6iETrStJAOZ8zOOXlcN10+Qk2/xRRAPLjjem0TnGzskvIKDKDy4HjD949Y7Mv35A2Nr/Wu3Rd0w==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Cc: Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 08 Sep 2022 09:09:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 02/09/2022 08:09, Michal Orzel wrote:
During the ping test, dom1 tries to assign an ip to eth0 in a loop.
Before setting up the network interface by dom0, this results in
printing the following error message several times:
(XEN) DOM1: ifconfig: SIOCSIFADDR: No such device

Silence this by redirecting stderr/stdout to /dev/null as we do not
care about the output and we should not pollute the log file.

Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
Reviewed-by: Ayan Kumar Halder <ayankuma@xxxxxxx>
---
  automation/scripts/qemu-smoke-arm64.sh | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/automation/scripts/qemu-smoke-arm64.sh 
b/automation/scripts/qemu-smoke-arm64.sh
index c80d9b2aee00..7ac96027760d 100755
--- a/automation/scripts/qemu-smoke-arm64.sh
+++ b/automation/scripts/qemu-smoke-arm64.sh
@@ -6,7 +6,7 @@ test_variant=$1
passed="passed"
  check="
-until ifconfig eth0 192.168.0.2 && ping -c 10 192.168.0.1; do
+until ifconfig eth0 192.168.0.2 &> /dev/null && ping -c 10 192.168.0.1; do
      sleep 30
  done
  echo \"${passed}\"



 


Rackspace

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