summaryrefslogtreecommitdiff
path: root/tests/ovsdb-server.at
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2023-01-05 15:12:29 +0100
committerIlya Maximets <i.maximets@ovn.org>2023-01-06 15:56:12 +0100
commit461ab419ead100ef38a3f596151e826ca3dd131d (patch)
tree7c7af8f818cf9bc9b97190c3cda522340f0f860e /tests/ovsdb-server.at
parent182b9cb3524c5e7be20be7ebf061c6730a7f7e26 (diff)
downloadopenvswitch-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 'tests/ovsdb-server.at')
-rw-r--r--tests/ovsdb-server.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ovsdb-server.at b/tests/ovsdb-server.at
index c7b2fe3ae..0828e6d04 100644
--- a/tests/ovsdb-server.at
+++ b/tests/ovsdb-server.at
@@ -1270,7 +1270,7 @@ dnl a case where there is only one transaction in a history.
get_memory_value () {
n=$(ovs-appctl -t ovsdb-server memory/show dnl
| tr ' ' '\n' | grep "^$1:" | cut -d ':' -f 2)
- if test X"$n" == "X"; then
+ if test X"$n" = "X"; then
n=0
fi
echo $n