]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable netmgr tests only when running under CI
authorOndřej Surý <ondrej@sury.org>
Wed, 31 Mar 2021 06:59:03 +0000 (08:59 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 7 Apr 2021 13:36:58 +0000 (15:36 +0200)
The full netmgr test suite is unstable when run in CI due to various
timing issues.  Previously, we enabled the full test suite only when
CI_ENABLE_ALL_TESTS environment variable was set, but that went against
original intent of running the full suite when an individual developer
would run it locally.

This change disables the full test suite only when running in the CI and
the CI_ENABLE_ALL_TESTS is not set.

lib/isc/tests/netmgr_test.c

index 2657a9486465180d267a22267bae95e07ab238c6..c52bf11c32274b16393f1e96016011849eb494ed 100644 (file)
@@ -191,7 +191,7 @@ _setup(void **state __attribute__((unused))) {
 
        signal(SIGPIPE, SIG_IGN);
 
-       if (getenv("CI_ENABLE_ALL_TESTS") != NULL) {
+       if (getenv("CI") == NULL || getenv("CI_ENABLE_ALL_TESTS") != NULL) {
                esends = NSENDS * workers;
        } else {
                esends = workers;