X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Ftest.cc;h=ef10028c5800160dabb687448ec433b0bc0ba321;hb=2e41f2aa7540640d02892f46bd16871e4581f3cf;hp=11222b2c08d11c9d362aff1a9e2c52ed7282be6f;hpb=65e75d2db2d217b37c94c36d48607cb8425c8f86;p=awesomized%2Flibmemcached diff --git a/libtest/test.cc b/libtest/test.cc index 11222b2c..ef10028c 100644 --- a/libtest/test.cc +++ b/libtest/test.cc @@ -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;