diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2023-01-05 15:12:29 +0100 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2023-01-06 15:56:12 +0100 |
commit | 461ab419ead100ef38a3f596151e826ca3dd131d (patch) | |
tree | 7c7af8f818cf9bc9b97190c3cda522340f0f860e /utilities | |
parent | 182b9cb3524c5e7be20be7ebf061c6730a7f7e26 (diff) | |
download | openvswitch-461ab419ead100ef38a3f596151e826ca3dd131d.tar.gz |
treewide: Don't use non-portable '==' with test command.
'==' is not defined by POSIX and not supported by some shells.
This is causing test failures and potential other issues:
./tests/testsuite: 54: test: X2: unexpected operator
./tests/testsuite: 54: test: X157: unexpected operator
./tests/testsuite: 54: test: X116: unexpected operator
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2022-December/052157.html
Reviewed-by: David Marchand <david.marchand@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'utilities')
-rwxr-xr-x | utilities/ovs-sim.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utilities/ovs-sim.in b/utilities/ovs-sim.in index 08957bdf4..779ea60ae 100755 --- a/utilities/ovs-sim.in +++ b/utilities/ovs-sim.in @@ -131,7 +131,7 @@ EOF export -f as sim_add() { - if test "$1" == --help; then + if test "$1" = --help; then cat <<EOF $FUNCNAME: create a new sandboxed Open vSwitch instance usage: $FUNCNAME SANDBOX @@ -178,7 +178,7 @@ EOF export -f sim_add net_add() { - if test "$1" == --help; then + if test "$1" = --help; then cat <<EOF $FUNCNAME: create a new interconnection network usage: $FUNCNAME NETWORK @@ -198,7 +198,7 @@ EOF export -f net_add net_attach() { - if test "$1" == --help; then + if test "$1" = --help; then cat <<EOF $FUNCNAME: attach the default sandbox to an interconnection network usage: $FUNCNAME NETWORK BRIDGE |