diff --git a/hysop/testsenv.py b/hysop/testsenv.py
index 0a735bd2849d29d095a395b7ec5531212f2229d2..9ae984c0fbaa43d732efc2c9fa1761f18556a5ae 100644
--- a/hysop/testsenv.py
+++ b/hysop/testsenv.py
@@ -75,7 +75,7 @@ if __HAS_OPENCL_BACKEND__:
         If __ENABLE_LONG_TESTS__ is False, just yield the default OpenCl
         environment.
         """
-        all_platforms = first_not_None(all_platforms, __ENABLE_LONG_TESTS__)
+        all_platforms = first_not_None(all_platforms, __TEST_ALL_OPENCL_PLATFORMS__)
         if isinstance(device_type, str):
             if (device_type=='cpu'):
                 device_type = cl.device_type.CPU