From 58dc05c87e55571c9164620617915f84f1132169 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 30 May 2016 10:22:07 +0200 Subject: [PATCH] Tests: turn off liblinphone logs so that Jenkins can parse output without being messed up --- TestsLiblinphone/LinphoneTester_Tests.m | 2 ++ TestsUI/LinphoneTestCase.m | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/TestsLiblinphone/LinphoneTester_Tests.m b/TestsLiblinphone/LinphoneTester_Tests.m index 08116b83d..0214c98a1 100644 --- a/TestsLiblinphone/LinphoneTester_Tests.m +++ b/TestsLiblinphone/LinphoneTester_Tests.m @@ -38,6 +38,8 @@ void tester_logs_handler(int level, const char *fmt, va_list args) { static char *bundle = NULL; static char *documents = NULL; + // turn off logs since jenkins fails to parse output otherwise. If + // you want to debug a specific test, comment this temporary [Log enableLogs:ORTP_WARNING]; bc_tester_init(tester_logs_handler, ORTP_MESSAGE, ORTP_ERROR, "rcfiles"); diff --git a/TestsUI/LinphoneTestCase.m b/TestsUI/LinphoneTestCase.m index 2f75e3fc1..c4bd1af24 100644 --- a/TestsUI/LinphoneTestCase.m +++ b/TestsUI/LinphoneTestCase.m @@ -31,6 +31,10 @@ - (void)beforeAll { [super beforeAll]; + // turn off logs since jenkins fails to parse output otherwise. If + // you want to debug a specific test, comment this temporary + [Log enableLogs:ORTP_WARNING]; + #if TARGET_IPHONE_SIMULATOR while ([tester acknowledgeSystemAlert]) { [tester waitForTimeInterval:.5f];