From: Ed Maste Date: Tue, 31 Jul 2012 12:24:30 +0000 (-0400) Subject: tests: Avoid xargs, for FreeBSD compatibility. X-Git-Tag: sliver-openvswitch-1.8.90-0~48^2~143 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6dc2f8eeada4e4e1b1fc29d69cb7cbdf1cd94061;p=sliver-openvswitch.git tests: Avoid xargs, for FreeBSD compatibility. The FreeBSD version of xargs does not run the utility argument on empty input, while GNU xargs runs it at least once, even with empty input. As a result on FreeBSD VSCTL_CHECK_FIND returned no output for an empty bridge list while on Linux it returned a single blank line. Signed-off-by: Ed Maste Signed-off-by: Ben Pfaff --- diff --git a/tests/ovs-vsctl.at b/tests/ovs-vsctl.at index 71c46cd41..a6c674981 100644 --- a/tests/ovs-vsctl.at +++ b/tests/ovs-vsctl.at @@ -769,7 +769,7 @@ AT_CHECK( ]) m4_define([VSCTL_CHECK_FIND], - [AT_CHECK([ovs-vsctl --bare --timeout=5 --no-wait -vreconnect:emer --db=unix:socket -- --columns=name find bridge '$1' | sort | xargs echo], [0], [$2 + [AT_CHECK([echo `ovs-vsctl --bare --timeout=5 --no-wait -vreconnect:emer --db=unix:socket -- --columns=name find bridge '$1' | sort`], [0], [$2 ])]) # Arithmetic relational operators without keys.