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

[xen master] automation: qemu-smoke-arm64: Silence ifconfig error messages



commit e17ca18747cad3933e975b56560e49c3b3f705d3
Author:     Michal Orzel <michal.orzel@xxxxxxx>
AuthorDate: Thu Sep 8 11:22:29 2022 +0200
Commit:     Stefano Stabellini <stefano.stabellini@xxxxxxx>
CommitDate: Thu Sep 8 16:28:21 2022 -0700

    automation: qemu-smoke-arm64: Silence ifconfig error messages
    
    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: Luca Fancellu <luca.fancellu@xxxxxxx>
    Reviewed-by: Ayan Kumar Halder <ayankuma@xxxxxxx>
    Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
 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 c80d9b2aee..7ac9602776 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}\"
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

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