tests/eventscripts: Ratchet down debug level for ctdb_takeover_tests
authorMartin Schwenke <martin@meltin.net>
Mon, 7 Jan 2013 23:21:49 +0000 (10:21 +1100)
committerMartin Schwenke <martin@meltin.net>
Mon, 7 Jan 2013 23:53:28 +0000 (10:53 +1100)
The default IP allocation algorithm used by ctdb_takeover_tests
changed from "non-deterministic IPs" to "LCP2".  The latter generates
a lot more debug output.  ctdb_takeover_tests is used by the ctdb tool
stub to calculate IP address changes for failovers.  This resulted in
unexpected debug output that caused tests to fail.  Since eventscript
tests don't care how IP allocations are arrived at, the best solution
is to turn down the debug level.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/eventscripts/stubs/ctdb

index e06e199fcca770b6f7d6116d2b51d44e0153c8fd..3abdd164b98b324015d9e7bad18b5ec1d7faf496 100755 (executable)
@@ -126,7 +126,8 @@ ip_reallocate ()
            fi
            _flags="${_flags}${_flags:+,}${_this}"
        done
-       "ctdb_takeover_tests" \
+       CTDB_TEST_LOGLEVEL=2 \
+           "ctdb_takeover_tests" \
            "ctdb_takeover_run_core" "$_flags" <"$FAKE_CTDB_IP_LAYOUT" |
            sort >"$_t"
        mv "$_t" "$FAKE_CTDB_IP_LAYOUT"