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/sysdb-tests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/tests/sysdb-tests.c') diff --git a/server/tests/sysdb-tests.c b/server/tests/sysdb-tests.c index f1d3ae49d..d4f0e2fdb 100644 --- a/server/tests/sysdb-tests.c +++ b/server/tests/sysdb-tests.c @@ -2532,7 +2532,8 @@ int main(int argc, const char *argv[]) { sysdb_suite = create_sysdb_suite(); sr = srunner_create(sysdb_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