[Libosinfo] [osinfo-db-tools PATCH v2 2/2] configure: Use "=" for `test` instead of "=="

Fabiano Fidêncio fidencio at redhat.com
Tue Apr 23 11:12:16 UTC 2019


`man test` only lists "=" instead of "==".

With that in mind, let's change how we compare the strings to always use
a single "=" sign.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 25a1a27..3f63cdf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,7 +13,7 @@ AC_PATH_PROG([PERL], [perl])
 
 # python3, python3-pytest and python3-requests are needed for our tests
 AC_CHECK_PROG(HAVE_PYTHON3, python3, yes, no)
-if test "x$HAVE_PYTHON3" == "xyes";
+if test "x$HAVE_PYTHON3" = "xyes";
 then
     PYTHON="python3"
 
@@ -32,7 +32,7 @@ else
     HAVE_PYTEST="no"
     HAVE_REQUESTS="no"
 fi
-AM_CONDITIONAL([EXECUTE_TESTS], [test "x$HAVE_PYTEST" == "xyes" && test "x$HAVE_REQUESTS" = "xyes"])
+AM_CONDITIONAL([EXECUTE_TESTS], [test "x$HAVE_PYTEST" = "xyes" && test "x$HAVE_REQUESTS" = "xyes"])
 
 LT_INIT([shared disable-static win32-dll])
 
-- 
2.21.0




More information about the Libosinfo mailing list