TestsLiblinphone: turn off logs totally when runnig automated tests on real device, so that xcodebuild has a chance to parse results correctly

This commit is contained in:
Gautier Pelloux-Prayer 2016-06-09 15:03:03 +02:00
parent ff482c8733
commit e5c06254cc

View file

@ -35,9 +35,13 @@ void tester_logs_handler(int level, const char *fmt, va_list args) {
}
+ (void)initialize {
// 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
[Log enableLogs:ORTP_DEBUG];
#else
// turn off logs since xcodebuild fails to retrieve whole output otherwise on
// real device. If you need to debug, comment this line temporary
[Log enableLogs:NO];
#endif
bc_tester_init(tester_logs_handler, ORTP_MESSAGE, ORTP_ERROR, "rcfiles");
liblinphone_tester_add_suites();