/external/autotest/client/bin/ |
client_logging_config.py | 6 def add_debug_file_handlers(self, log_dir, log_name=None): 11 self._add_file_handlers_for_all_levels(log_dir, log_name) 20 log_dir = os.path.join(results_dir, 'debug') 21 if not os.path.exists(log_dir): 22 os.mkdir(log_dir) 23 self.add_debug_file_handlers(log_dir)
|
site_sysinfo.py | 55 def run(self, log_dir): 58 @param log_dir: The destination log directory. 62 utils.system("mkdir -p %s%s" % (log_dir, parent_dir)) 72 log_dir, parent_dir)) 207 def run(self, log_dir, collect_init_status=True, collect_all=False): 208 """Copies new content from self.dir to the destination log_dir. 210 @param log_dir: The destination log directory. 220 self._log_diff(self.dir, log_dir) 223 logdir_temp.run(log_dir) 232 def run(self, log_dir) [all...] |
/external/autotest/server/ |
server_logging_config.py | 7 def add_debug_file_handlers(self, log_dir, log_name=None): 10 self._add_file_handlers_for_all_levels(log_dir, log_name) 22 log_dir = os.path.join(results_dir, 'debug') 23 if not os.path.exists(log_dir): 24 os.mkdir(log_dir) 25 self.add_debug_file_handlers(log_dir, log_name=debug_log_name)
|
/external/autotest/scheduler/ |
drone_logging_config.py | 37 def configure_logging(self, log_dir=None, logfile_name=None): 40 If log_dir and logfile_name are not provided, it will request a 50 @param log_dir: Directory to store the log in. If none will use 58 if log_dir is None: 59 log_dir = self.get_server_log_dir() 65 self.add_file_handler(logfile_name, level, log_dir=log_dir
|
scheduler_lib.py | 128 def configure_logging(self, log_dir=None, logfile_name=None, 132 @param log_dir: The directory to log into. 139 if log_dir is None: 140 log_dir = self.get_server_log_dir() 144 self.add_file_handler(logfile_name, logging.DEBUG, log_dir=log_dir) 146 log_dir, '%s.latest' % timestamped_logfile_prefix) 151 os.symlink(os.path.join(log_dir, logfile_name), symlink_path) 154 def setup_logging(log_dir, log_name, timestamped_logfile_prefix='scheduler'): 157 @param log_dir: The directory to log into [all...] |
/external/autotest/client/site_tests/firmware_TouchMTB/tools/ |
print_log.py | 7 Usage: python tools/print_log.py <log_dir> 21 def _print_log(log_dir): 23 filenames = glob.glob(os.path.join(log_dir, '*.log')) 48 print 'Usage: python tools/%s <log_dir>' % sys.argv[0] 50 log_dir = sys.argv[1] variable 51 _print_log(log_dir)
|
host_replay.sh | 98 read log_dir log_file <<< `echo $file | awk -F/ 'BEGIN{OFS=" ";} \ 100 cp "${HOST_TMP_LOG_DIR}/${log_file}" "${board}/${log_dir}/${log_file}"
|
/external/autotest/site_utils/ |
abort_suite.py | 82 log_dir = os.path.join(common.autotest_dir, 'logs') 83 if not os.path.exists(log_dir): 84 os.makedirs(log_dir) 86 log_name = os.path.join(log_dir, log_name)
|
perf_csv_uploader.py | 176 def setup_logging(log_dir): 179 @param log_dir: Path to the directory storing logs of this script. 182 logfile = os.path.join(os.path.abspath(log_dir), 'perf_csv_uploader.log') 220 parser.add_argument('--log_dir', type=str, dest='log_dir', 234 setup_logging(options.log_dir) 235 test_attribute_id_file = os.path.join(options.log_dir,
|
/external/autotest/client/tests/ctcs/ |
ctcs.py | 86 log_dir = glob.glob(os.path.join(log_base_path, 88 logging.debug('Copying %s log directory to results dir', log_dir) 89 dst = os.path.join(self.resultsdir, os.path.basename(log_dir)) 90 shutil.move(log_dir, dst)
|
/external/e2fsprogs/e2fsck/ |
logfile.c | 291 char *s0 = 0, *log_dir = 0, *log_fn = 0; local 303 profile_get_string(ctx->profile, "options", "log_dir", 0, 0, &log_dir); 309 if ((log_fn[0] == '/') || !log_dir || !log_dir[0]) 312 if (log_dir && log_dir[0]) { 313 alloc_string(&s1, strlen(log_dir) + strlen(s.s) + 2); 314 append_string(&s1, log_dir, 0); 319 free(log_dir); [all...] |
/external/autotest/site_utils/suite_scheduler/ |
suite_scheduler.py | 151 def configure_logging(self, log_dir=None): 154 if not log_dir: 158 self.add_file_handler(base + '.DEBUG', logging.DEBUG, log_dir=log_dir) 159 self.add_file_handler(base + '.INFO', logging.INFO, log_dir=log_dir) 185 parser.add_option('-d', '--log_dir', dest='log_dir', 244 log_dir=options.log_dir) [all...] |
/external/autotest/client/site_tests/firmware_TouchMTB/ |
main.py | 98 self.log_dir = options[OPTIONS.RESUME] 101 self.log_dir = options[OPTIONS.REPLAY] 102 fw_str, date = firmware_utils.get_fw_and_date(self.log_dir) 107 self.log_dir = firmware_utils.create_log_dir(firmware_version, mode) 121 self.output = firmware_utils.Output(self.log_dir, 234 filepath = os.path.join(self.log_dir, filename) 253 self.report_name = os.path.join(self.log_dir, fname) 318 def upload_to_gs(log_dir): 319 """Upload the gesture event files specified in log_dir to Google cloud 322 @param log_dir: the log directory of which the gesture event files ar [all...] |
firmware_utils.py | 159 log_dir = os.path.join(log_root_dir, dir_basename) 164 os.makedirs(log_dir) 166 print 'Error in create the directory (%s): %s' % (log_dir, e) 173 os.symlink(log_dir, latest_symlink) 177 return log_dir 220 def __init__(self, log_dir, report_name, win, report_html): 221 self.log_dir = log_dir
|
firmware_summary.py | 98 def __init__(self, log_dir, display_metrics=False, debug_flag=False, 105 if os.path.isdir(log_dir): 106 self.log_dir = log_dir 109 print error_msg % log_dir 114 self.slog = firmware_log.SummaryLog(log_dir,
|
firmware_log.py | 546 def __init__(self, log_dir, segment_weights, validator_weights, 548 self.log_dir = log_dir 565 # Get logs in the log_dir or its sub-directories. 566 log_filenames = glob.glob(os.path.join(self.log_dir, '*.log')) 568 log_filenames = glob.glob(os.path.join(self.log_dir, '*', '*.log')) 572 print_and_exit(err_msg % self.log_dir)
|
/external/autotest/client/common_lib/ |
logging_config.py | 107 log_dir=None, 109 if log_dir: 110 file_path = os.path.join(log_dir, file_path) 123 def _add_file_handlers_for_all_levels(self, log_dir, log_name): 127 self.add_file_handler(file_name, level=level, log_dir=log_dir) 129 def add_debug_file_handlers(self, log_dir, log_name=None):
|
/external/autotest/site_utils/rpm_control_system/ |
rpm_logging_config.py | 72 log_dir = os.path.dirname(log_filename) 73 if not os.path.isdir(log_dir): 74 os.makedirs(log_dir)
|
/external/toolchain-utils/crosperf/ |
crosperf.py | 85 '--log_dir', 86 dest='log_dir', 88 help='The log_dir, default is under <crosperf_logs>/logs') 96 log_dir = os.path.abspath(os.path.expanduser(options.log_dir)) 97 logger.GetLogger(log_dir) 114 working_directory, log_dir)
|
experiment.py | 29 acquire_timeout, log_dir, log_level, share_cache, 43 self.log_dir = log_dir 80 self.l = logger.GetLogger(log_dir) 127 logger_to_use = logger.Logger(self.log_dir, 'run.%s' % (full_name),
|
experiment_factory.py | 107 def GetExperiment(self, experiment_file, working_directory, log_dir): 308 acquire_timeout, log_dir, log_level, share_cache,
|
/external/autotest/client/site_tests/firmware_TouchMTB/tests/ |
firmware_summary_unittest.py | 50 log_dir = os.path.join(test_dir, 'logs', cls.log_category) 51 summary = FirmwareSummary(log_dir=log_dir,
|
/external/toolchain-utils/cros_utils/ |
logger.py | 340 def InitLogger(script_name, log_dir, print_console=True, mock=False): 346 if not log_dir: 347 log_dir = rootdir 349 main_logger = Logger(log_dir, basefilename, print_console) 351 main_logger = MockLogger(log_dir, basefilename, print_console) 354 def GetLogger(log_dir='', mock=False): 356 InitLogger(sys.argv[0], log_dir, mock=mock)
|
/external/clang/utils/ |
FuzzTest | 132 if opts.log_dir: 133 stdout_log_path = os.path.join(opts.log_dir, '%s.out' % index) 134 stderr_log_path = os.path.join(opts.log_dir, '%s.err' % index) 218 type=str, dest="log_dir", 292 if opts.log_dir: 293 if not os.path.exists(opts.log_dir): 295 os.mkdir(opts.log_dir)
|
/external/ltp/ |
execltp.in | 238 parser.add_option('-L', '--log-dir', dest='log_dir', 299 if not opts.log_dir: 300 opts.log_dir = os.path.join(opts.ltp_dir, 'output') 358 exec_log = os.path.join(opts.log_dir, '%s-exec.log' % testsuite) 359 output_log = os.path.join(opts.log_dir, ('%s-output.log'
|