[v1,1/1] tests: fix disabling of validation tests

Message ID 1507190407-4153-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • tests: fix disabling of validation tests
Related show

Commit Message

Github ODP bot Oct. 5, 2017, 8 a.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Fix for the fix...
[b4d17b1f6807 tests: fix validation tests being skipped by default]
attempted to fix tests being disabled by default, but in attempt to do
so just forced them to be enabled even if they are forcibly disabled by
configure option. Update conditions to really enable testsuite if it was
not disabled.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 212 (lumag:fix-validation)
 ** https://github.com/Linaro/odp/pull/212
 ** Patch: https://github.com/Linaro/odp/pull/212.patch
 ** Base sha: 52cfe7ba6d2541cf5ee464e46e91b2da5efe1497
 ** Merge commit sha: c959af955b50fe68cbcdf94451eff76c729a2c4e
 **/
 test/common_plat/m4/validation.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/test/common_plat/m4/validation.m4 b/test/common_plat/m4/validation.m4
index f7127c06c..65ba2aa2e 100644
--- a/test/common_plat/m4/validation.m4
+++ b/test/common_plat/m4/validation.m4
@@ -24,7 +24,7 @@  AS_IF([test "x$test_vald" = "xyes" -a "x$cunit_support" = "xno"],
       [test "x$test_vald" = "xcheck" -a "x$cunit_support" = "xno"],
       [AC_MSG_WARN([CUnit was not found, disabling validation testsuite])
        test_vald=no],
-      [test_vald=yes])
+      [test "x$test_vald" != "xno"], [test_vald=yes])
 
 AM_CONDITIONAL([cunit_support], [test "x$cunit_support" = "xyes"])
 AM_CONDITIONAL([test_vald], [test "x$test_vald" = "xyes"])