Home
last modified time | relevance | path

Searched refs:line (Results 1 - 25 of 69) sorted by relevance

123

/test/testfwk/xdevice/plugins/ohos/src/ohos/parser/
H A Dcpp_parser_lite.py57 for line in lines:
59 LOG.debug(line)
60 self.parse(line)
80 def _is_test_run(line):
81 return True if _TEST_RUN_TAG in line else False
84 def _is_test_start_run(line):
85 return True if _TEST_START_RUN_TAG in line else False
88 def _is_informational_start(line):
89 return True if _INFORMATIONAL_START in line else False
92 def _is_test_start(line)
[all...]
H A Doh_kernel_parser.py52 for line in lines:
53 self.parse(line)
58 def parse(self, line):
59 line = re.sub('\x1b.*?m', '', line)
60 if self.state_machine.suites_is_started() or RUNTEST_TEST in line:
61 if RUNTEST_TEST in line:
62 self.handle_suites_started_tag(line)
63 elif START_TO_TEST in line:
64 self.handle_suite_start_tag(line)
[all...]
H A Dcpp_parser.py59 for line in lines:
60 line = str(line).strip().rstrip("\r")
61 LOG.debug(line)
62 self.parse(line)
75 def parse(self, line):
77 if self.state_machine.suites_is_started() or line.startswith(
79 if line.startswith(_START_TEST_RUN_MARKER):
80 message = line[len(_TEST_RUN_MARKER):].strip()
82 elif line
[all...]
H A Dc_parser_lite.py57 for line in lines:
58 self.parse(line)
70 def _is_ctest_start_test_run(line):
71 return True if line.endswith(_CTEST_START_TEST_RUN_TAG) else False
74 def _is_ctest_end_test_run(line):
75 return True if line.endswith(_CTEST_END_TEST_RUN_TAG) else False
78 def _is_ctest_run(line):
79 return re.match(r"[\s\S]*(Tests)[\s\S]*(Failures)[\s\S]*(Ignored)[\s\S]*", line)
81 def _is_ctest_suite_test_run(self, line):
83 line)
[all...]
H A Doh_jsunit_parser.py78 for line in lines:
79 line = str(line).strip().rstrip("\r")
80 LOG.debug(line)
81 self.parse(line)
83 def parse(self, line):
84 if not str(line).strip():
86 if OHJSUnitPrefixes.SUM.value in line:
87 new_line = line[line
[all...]
H A Djunit_parser.py55 for line in lines:
57 LOG.debug(line)
58 self.parse(line)
70 def parse(self, line):
71 if line.startswith(Prefixes.STATUS_CODE.value):
73 self.parse_status_code(line)
74 elif line.startswith(Prefixes.STATUS.value):
76 self.parse_key(line, len(Prefixes.STATUS.value))
77 elif line.startswith(Prefixes.RESULT.value):
79 elif line
[all...]
H A Doh_rust_parser.py45 for line in lines:
46 self.parse(line)
51 def parse(self, line):
52 if line.startswith("running"):
53 matcher = re.match(self.running_pattern, line)
57 elif line.startswith("test result:"):
58 matcher = re.match(self.test_result_pattern, line)
63 elif "..." in line:
64 matcher = re.match(self.test_pattern, line)
68 elif line
[all...]
H A Djsunit_parser_lite.py50 for line in lines:
51 self.parse(line)
56 def parse(self, line):
58 line.find(_START_JSUNIT_RUN_MARKER) != -1) and \
59 line.find(_ACE_LOG_MARKER) != -1:
60 if line.find(_START_JSUNIT_RUN_MARKER) != -1:
62 elif line.endswith(_END_JSUNIT_RUN_MARKER):
64 elif line.find(_START_JSUNIT_SUITE_RUN_MARKER) != -1:
65 self.handle_suite_started_tag(line.strip())
66 elif line
[all...]
H A Dconstants.py24 def parse_product_info(line, is_params, product_info):
25 if Constant.PRODUCT_PARAMS_START in line:
27 elif Constant.PRODUCT_PARAMS_END in line:
30 # line output: 2023-11-13 15:51:23.453 OsFullName = xx
31 line = "".join(line.split(" ")[2:])
32 product_info.update(parse_line_key_value(line))
H A Djsunit_parser.py57 for line in lines:
58 self.parse(line)
63 def parse(self, line):
64 if (self.state_machine.suites_is_started() or line.find(
66 self._is_match_marker(line):
67 if line.find(_START_JSUNIT_RUN_MARKER) != -1:
69 elif line.endswith(_END_JSUNIT_RUN_MARKER):
71 elif line.find(_START_JSUNIT_SUITE_RUN_MARKER) != -1:
72 self.handle_suite_started_tag(line.strip())
73 elif line
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/
H A Dutils.py24 def parse_line_key_value(line):
25 """parse line which should format as 'key = value'"""
27 if "=" in line:
28 arr = line.split("=")
37 for line in in_str.split("\n"):
38 if Constant.PRODUCT_PARAMS_START in line:
40 elif Constant.PRODUCT_PARAMS_END in line:
43 params.update(parse_line_key_value(line))
/test/ostest/wukong/report/src/
H A Dstatistics_event.cpp38 std::vector<std::string> line; in StatisticsDetail() local
45 UpdateLine(curEventStatisticsRecordPtr, curEventStatisticsMsgPtr->eventTypeTotal_, line); in StatisticsDetail()
46 record_.push_back(line); in StatisticsDetail()
50 UpdateLine(curBundleAllStatisticsPtr, curEventStatisticsMsgPtr->eventTypeTotal_, line); in StatisticsDetail()
51 record_.push_back(line); in StatisticsDetail()
116 uint32_t eventTypeTotal, std::vector<std::string> &line) in UpdateLine()
129 DEBUG_LOG_STR("line content curElementType{%s} | curExecTimes{%s}", curElementType.c_str(), curExecTimes.c_str()); in UpdateLine()
130 line = {curElementType, curExecTimes, curProportionStr}; in UpdateLine()
135 std::vector<std::string> line; in GlobalElementTypesStatistics() local
151 UpdateLine(eventStatisticsRecordPtr, execCount_, line); in GlobalElementTypesStatistics()
115 UpdateLine(std::shared_ptr<EventStatisticsRecord> EventStatisticsRecordPtr, uint32_t eventTypeTotal, std::vector<std::string> &line) UpdateLine() argument
[all...]
H A Dstatistics_exception.cpp54 std::vector<std::string> line; in StatisticsDetail() local
57 line.push_back(crashTypesIter); in StatisticsDetail()
60 line.push_back(std::to_string(curExceptionTypeCount)); in StatisticsDetail()
69 line.push_back(proportionStr); in StatisticsDetail()
70 record_.push_back(line); in StatisticsDetail()
71 line.clear(); in StatisticsDetail()
74 line = {"total", std::to_string(exceptionTotal_), "100%"}; in StatisticsDetail()
75 record_.push_back(line); in StatisticsDetail()
H A Dstatistics_componment.cpp40 std::vector<std::string> line; in StatisticsDetail() local
47 UpdateLine(curComponmentStatisticsRecordPtr, curComponmentStatisticsMsgPtr->componmentTypeTotal_, line); in StatisticsDetail()
48 record_.push_back(line); in StatisticsDetail()
54 UpdateLine(curBundleAllStatisticsPtr, curComponmentStatisticsMsgPtr->componmentTypeTotal_, line); in StatisticsDetail()
55 record_.push_back(line); in StatisticsDetail()
125 unsigned int componmentTypeTotal, std::vector<std::string> &line) in UpdateLine()
148 "line content curComponmentType{%s} | curExecTimes{%s} | curProportionStr{%s} | curInputedTimes{%s} | " in UpdateLine()
152 line = {curComponmentType, curExecTimes, curProportionStr, curInputedTimes, curExpectInputTimes, curCoverageStr}; in UpdateLine()
157 std::vector<std::string> line; in GlobalComponmentTypeStatistics() local
178 UpdateLine(componmentTypeRecordPtr, execCount_, line); in GlobalComponmentTypeStatistics()
124 UpdateLine(std::shared_ptr<ComponmentStatisticsRecord> ComponmentStatisticsRecordPtr, unsigned int componmentTypeTotal, std::vector<std::string> &line) UpdateLine() argument
[all...]
H A Dstatistics_ability.cpp40 std::vector<std::string> line; in StatisticsDetail() local
47 UpdateLine(curAbilityStatisticsRecordPtr, line); in StatisticsDetail()
48 record_.push_back(line); in StatisticsDetail()
50 UpdateLine(globalAbilityStatisticsRecordPtr, line); in StatisticsDetail()
51 record_.push_back(line); in StatisticsDetail()
95 std::vector<std::string> &line) in UpdateLine()
110 DEBUG_LOG_STR("line content bundleName{%s} | inputedAbilityCount{%s} | abilitiesCount{%s} | curCoverageStr{%s}", in UpdateLine()
112 line = {bundleName, inputedAbilityCount, abilitiesCount, curCoverageStr}; in UpdateLine()
94 UpdateLine(std::shared_ptr<AbilityStatisticsRecord> abilityStatisticsRecordPtr, std::vector<std::string> &line) UpdateLine() argument
/test/testfwk/developer_test/libs/fuzzlib/tools/
H A Dtemplates.py216 for line in backtrace.split("\n"):
219 if line.strip().startswith(tag) == True \
220 and "in" in line and "exec/s" not in line:
227 if block_line in line:
231 new_backtrack = " %s %s \n" % (new_backtrack, line)
236 " > %s </b>\n' % line
239 new_backtrack = " %s %s \n" % (new_backtrack, line)
/test/testfwk/developer_test/local_coverage/keyword_registration/
H A Dkeyword_filter.py111 def get_tag(content, line):
112 start_index = content.find(f'<a name="{line}"')
113 end_index = content.find(f'<a name="{int(line) + 1}"')
153 for line in branch_line_list:
154 if line > keyword_line:
155 index = branch_line_list.index(line)
380 keyword_line_list = [int(line) for line in keyword_line_list]
385 for line in keyword_line_list:
386 tag_html = get_tag(content, line)
[all...]
/test/testfwk/developer_test/src/core/build/
H A Dpretreat_targets.py55 for line in self.target_list:
56 path = line.split(':')[0][2:]
57 name = line.split(':')[1].split('(')[0]
118 for line in lines:
119 if "TargetName" in line:
120 line = line.replace("TargetName", name)
121 json_data += line
130 for line in gn_file.readlines():
131 if line
[all...]
/test/xts/tools/lite/reliability/
H A DNativePressTest.py53 for line in splitlines:
54 print("Start go get pid with line:" + line)
55 if len(line.split()) >= 1:
56 print("Start go get pid:" + line)
57 testPID.append(line.split()[1])
87 for line in splitlines:
88 print("Get exception file with line " + line)
89 splitlines = line
[all...]
/test/testfwk/developer_test/local_coverage/interface_coverage/
H A Dmake_report.py60 line-height: 1.5em;
71 line-height: 1.8em;
219 for line in datalist:
220 if str(line[2]) == "N":
222 "<font=>" + subsystem_name + "</font>", "<font>" + line[0] + "</font>",
223 "<font>" + line[1] + "</font>",
224 "<font color=\"red\">" + str(line[2]) + "</font>")
228 "<font>" + subsystem_name + "</font>", "<font>" + line[0] + "</font>",
229 "<font>" + line[1] + "</font>",
230 "<font color=\"green\">" + str(line[
[all...]
/test/testfwk/developer_test/local_coverage/restore_comment/
H A Dbuild_before_generate.py63 for line in code_lines:
67 if key in line and line.strip().startswith(key):
68 write_fp.write(line)
70 elif " //LCOV_EXCL_BR_LINE" not in line and not line.strip().endswith("\\") \
72 write_fp.write("%s //LCOV_EXCL_BR_LINE" % line.strip("\n").strip("\n\r"))
76 write_fp.write(line)
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
H A Djsunit_driver.py240 line = file_read_pipe.readline()
243 if not line:
246 if self._is_match_marker(line):
247 if "[suites info]" in line:
248 _, pos = re.match(".+\\[suites info]", line).span()
249 suite_info.append(line[pos:].strip())
251 if "[start] start run suites" in line: # 发现了任务开始标签
253 self._init_suites_start(line, pattern, pid)
258 if not pid or pid not in line:
260 message_list.append(line)
[all...]
/test/testfwk/developer_test/aw/python/distributed/common/
H A Dmanager.py46 for line in lines:
47 line = line.replace("\n", "")
48 line = line.strip()
49 temp = line.split(",")
/test/testfwk/developer_test/local_coverage/resident_service/
H A Dpublic_method.py56 for line in strout.split("\n"):
57 line = line.strip().replace('\t', ' ')
58 if line != "":
59 device_sn_list.append(line)
/test/ostest/wukong/common/include/
H A Dcommon.h27 char line[NUMBER]; in runProcess() local
28 while (fgets(line, NUMBER, fp)) { in runProcess()
29 stm << line; in runProcess() local

Completed in 8 milliseconds

123