From 9cbcc60997b3d9fd6c5c17f956bc90aac1abba70 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 20 Nov 2009 12:02:33 -0500 Subject: Only display errors in unit tests If you want to turn verbosity back on, just set the environment variable CK_VERBOSITY=verbose --- server/tests/ipa_timerules-tests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/tests/ipa_timerules-tests.c') diff --git a/server/tests/ipa_timerules-tests.c b/server/tests/ipa_timerules-tests.c index 12ce66509..0a7be90be 100644 --- a/server/tests/ipa_timerules-tests.c +++ b/server/tests/ipa_timerules-tests.c @@ -571,7 +571,8 @@ int main(int argc, const char *argv[]) timelib_suite = create_timelib_suite(); sr = srunner_create(timelib_suite); - srunner_run_all(sr, CK_VERBOSE); + /* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */ + srunner_run_all(sr, CK_ENV); failure_count = srunner_ntests_failed(sr); srunner_free(sr); return (failure_count==0 ? EXIT_SUCCESS : EXIT_FAILURE); -- cgit