[Libosinfo] [osinfo-db-tools PATCH] configure: Use "==" in tests instead of "="

Fabiano Fidêncio fidencio at redhat.com
Tue Apr 23 07:34:10 UTC 2019


Altough there's no issue on using "=" with the test, let's standardize
on a single way to compare values, using "==".

With that in mind, let's change "xHAVE_REQUESTS" = "xyes" to
"xHAVE_REQUESTS" == "xyes" instead.

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

diff --git a/configure.ac b/configure.ac
index f3139f2..d6fa38f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ else
     HAVE_PYTEST="no"
     HAVE_REQUESTS="no"
 fi
-AM_CONDITIONAL([EXECUTE_TESTS], [test "x$HAVE_PYTEST" == "xyes" && "x$HAVE_REQUESTS" = "xyes"])
+AM_CONDITIONAL([EXECUTE_TESTS], [test "x$HAVE_PYTEST" == "xyes" && "x$HAVE_REQUESTS" == "xyes"])
 
 LT_INIT([shared disable-static win32-dll])
 
-- 
2.21.0




More information about the Libosinfo mailing list