Fixed logging in perf tests; small bugfix in run.py
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "tbb/task_scheduler_init.h"
|
||||
#endif
|
||||
|
||||
#if !(defined(LOGD) || defined(LOGI) || defined(LOGW) || defined(LOGE))
|
||||
# if defined(ANDROID) && defined(USE_ANDROID_LOGGING)
|
||||
# include <android/log.h>
|
||||
|
||||
@@ -22,7 +23,7 @@
|
||||
# define LOGW(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
|
||||
# define LOGE(_str, ...) do{printf(_str , ## __VA_ARGS__); printf("\n");fflush(stdout);} while(0)
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
namespace perf
|
||||
{
|
||||
|
@@ -433,7 +433,7 @@ class RunInfo(object):
|
||||
if len(userlog) == 0:
|
||||
args.append("--gtest_output=xml:" + logfile)
|
||||
else:
|
||||
logfile = userlog[userlog[0].find(":")+1:]
|
||||
logfile = userlog[0][userlog[0].find(":")+1:]
|
||||
|
||||
if self.targetos == "android":
|
||||
try:
|
||||
|
Reference in New Issue
Block a user