]> xenbits.xensource.com Git - people/tklengyel/xen.git/commitdiff
automation: qemu-smoke-arm64: Silence ifconfig error messages
authorMichal Orzel <michal.orzel@amd.com>
Thu, 8 Sep 2022 09:22:29 +0000 (11:22 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 8 Sep 2022 23:28:21 +0000 (16:28 -0700)
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@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Ayan Kumar Halder <ayankuma@amd.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
automation/scripts/qemu-smoke-arm64.sh

index c80d9b2aee009bdf9348b3f91c52737c4f80b53a..7ac96027760d4875916517e941012186aabc5470 100755 (executable)
@@ -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}\"