jenkins-promote-staging-trunk-libmemcached-9
[m6w6/libmemcached] / libtest / test.cc
index 11222b2c08d11c9d362aff1a9e2c52ed7282be6f..ef10028c5800160dabb687448ec433b0bc0ba321 100644 (file)
@@ -229,14 +229,19 @@ int main(int argc, char *argv[])
         return EXIT_FAILURE;
       }
 
-      if (getenv("TEST_COLLECTION"))
+      if (getenv("YATL_COLLECTION_TO_RUN"))
       {
-        if (strlen(getenv("TEST_COLLECTION")))
+        if (strlen(getenv("YATL_COLLECTION_TO_RUN")))
         {
-          collection_to_run= getenv("TEST_COLLECTION");
+          collection_to_run= getenv("YATL_COLLECTION_TO_RUN");
         }
       }
 
+      if (collection_to_run.compare("none") == 0)
+      {
+        return EXIT_SUCCESS;
+      }
+
       if (collection_to_run.empty() == false)
       {
         Out << "Only testing " <<  collection_to_run;