Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 92) sorted by relevance

1234

/scripts/build/
A Dprocess_gperf.py80 def process_line(line, fp): argument
81 if line.startswith("#"):
82 fp.write(line)
102 line = re.sub(r'lengthtable\[key\]', r'sizeof(void *)', line)
105 line = re.sub(r'[{]["]["][}]', r'{}', line)
114 line = re.sub(r'register', r'', line)
127 line = re.sub(r'["].*["]', reformat_str, line)
130 line = re.sub(r'char asso_values', r'short asso_values', line)
132 fp.write(line)
159 for line in in_fp.readlines():
[all …]
/scripts/
A Dcheckpatch.pl1275 $line = expand_tabs($line);
1427 $line++;
1513 $line++;
1603 my $line;
1612 for ($line = $start; $remain > 0; $line++) {
1736 my $line;
1739 next if (defined($line) && $line =~ /^-/);
2389 my $line;
4849 if ($line =~ /\[\s/ && $line !~ /\[\s*$/) {
4867 if ($line =~ /\(\s/ && $line !~ /\(\s*(?:\\)?$/ &&
[all …]
A Dcheckstack.pl120 while (my $line = <STDIN>) {
121 if ($line =~ m/$funcre/) {
124 elsif ($line =~ m/(.*):\s*file format/) {
132 elsif ($line =~ m/$re/) {
143 next if $line !~ m/^($xs*)/;
157 elsif (defined $dre && $line =~ m/$dre/) {
160 next if $line !~ m/^($xs*)/;
A Dgen_gcov_files.py22 for line in fp.readlines():
23 if re.search("GCOV_COVERAGE_DUMP_START", line):
26 if re.search("GCOV_COVERAGE_DUMP_END", line):
34 file_name = line.split("<")[0][1:]
36 hex_dump = line.split("<")[1][:-1]
/scripts/utils/
A Dpinctrl_nrf_migrate.py203 out.write(line)
237 out.write(line)
252 for line in content:
390 for line in content:
431 line = current_device.callback(config, current_device.signals, line)
433 line = (
440 if line:
483 return line
504 return line
526 return line
[all …]
A Dmigrate_sys_init.py31 for line in lines:
32 m = re.match(r"^SYS_INIT\(([A-Za-z0-9_]+),.*", line)
37 m = re.match(r"^SYS_INIT_NAMED\([A-Za-z0-9_]+,\s?([A-Za-z0-9_]+).*", line)
49 for line in lines:
54 line,
61 m = re.match(r"^\s?ARG_UNUSED\(" + arg + r"\);.*$", line)
66 content += line
68 m = re.match(r"^\s?\n$", line)
70 content += line
73 content += line
A Dboard_v1_to_v2.py99 for line in f.readlines():
100 m = re.match(r"^CONFIG_BOARD_.*$", line)
112 if dropped_line and re.match(r"^$", line):
116 board_defconfig += line
128 for line in f.readlines():
130 m = re.match(r"^config BOARD$", line)
140 m = re.match(r"^config .*$", line)
151 board_kconfig_defconfig += line
164 for line in f.readlines():
165 if "Copyright" in line:
[all …]
A Dconvert_guidelines.py82 for line in file_stream:
84 line = line.replace('\r', '').replace('\n', '')
87 if line.find('Additional rules') >= 0:
90 if len(line) == 0:
94 res = pattern_table_start.match(line)
100 res = pattern_new_line.match(line)
109 res = pattern_new_col.match(line)
A Dmigrate_posix_kconfigs.py89 for line in lines:
93 if re.match(".*" + m + ".*", line) and len(m) > length:
104 old = line
105 line = line.replace(longest, REPLACEMENTS[longest])
112 output.append(line)
A Dmigrate_mcumgr_kconfigs.py121 for line in lines:
125 if re.match(".*" + m + ".*", line) and len(m) > length:
131 line = line.replace(longest, REPLACEMENTS[longest])
133 output.append(line)
A Dtls_creds_installer.py148 def write_line(line, hidden=False): argument
151 ser.write(bytes((line + CMD_TERM_DICT[cmd_term_key]).encode('utf-8')))
176 line = ser.readline()
184 if line == b'\r\n':
187 if line is None or len(line) == 0:
194 if val1 in line:
197 elif val2 is not None and val2 in line:
200 elif store is not None and (store in line or str(store) in str(line)):
201 output = line
203 if b'\n' not in line:
A Dmigrate_bindings_style.py63 line = rowline.split(":")[0].strip()
64 if prop_name == line and "#" not in rowline:
66 if new_key != line:
67 lines[i] = rowline.replace(line, new_key)
/scripts/gitlint/
A Dzephyr_commit_rules.py69 for line in commit.message.body:
70 if line.lower().startswith("signed-off-by"):
84 def validate(self, line, _commit): argument
86 if len(line) > max_length and not line.startswith("Revert"):
87 … return [RuleViolation(self.id, self.violation_message.format(len(line), max_length), line)]
109 def validate(self, line, _commit): argument
112 if line.lower().startswith('signed-off-by') or line.lower().startswith('co-authored-by'):
118 if len(line) > max_length:
119 … return [RuleViolation(self.id, self.violation_message.format(len(line), max_length), line)]
127 def validate(self, line, _commit): argument
[all …]
/scripts/pylib/pytest-twister-harness/tests/resources/
A Dshell_simulator.py19 for line in sys.stdin:
20 line = line.strip()
21 print(line, flush=True)
22 if line == 'quit':
24 elif line == 'zen':
A Dmock_script.py32 for line in zen_of_python:
33 print(line, flush=True)
37 for line in zen_of_python:
38 print(line, flush=True)
/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/
A Dutils.py20 for line in lines:
21 if m := re_key.match(line):
22 logger.debug('Found matching key: %s' % line.strip())
31 assert any(sl in line for line in output_lines)
37 assert all(sl not in line for line in output_lines)
/scripts/ci/
A Dtwister_report_analyzer.py209 if "warning: " in line:
210 last_warning = line
214 return line[line.index('fatal error: ') :].strip()
223 return line
231 return line[line.index('undefined reference') :].strip()
239 return line
240 elif "error: " in line:
241 return line[line.index('error: ') :].strip()
243 last_warning = line[line.index('in function') :].strip()
261 line
[all …]
A Dguideline_check.py29 for line in contents.split("\n"):
30 r = reg.match(line)
105 for line in hunk:
106 if line.is_added:
107 violation = "{}:{}".format(f.path, line.target_line_no)
/scripts/coredump/
A Dcoredump_serial_log_parser.py50 for line in infile.readlines():
51 if line.find(COREDUMP_BEGIN_STR) >= 0:
57 if line.find(COREDUMP_END_STR) >= 0:
63 if line.find(COREDUMP_ERROR_STR) >= 0:
73 prefix_idx = line.find(COREDUMP_PREFIX_STR)
79 hex_str = line[prefix_idx:].strip()
/scripts/kconfig/
A Ddiffconfig44 for line in config_file:
45 line = line[:-1]
46 if line[:7] == "CONFIG_":
47 name, val = line[7:].split("=", 1)
49 if line[-11:] == " is not set":
50 d[line[9:-11]] = "n"
/scripts/pylib/twister/twisterlib/
A Dcmakecache.py68 def from_line(cls, line, line_no): argument
71 if line.startswith('//') or line.startswith('#'):
75 if not line.strip():
78 m = cls.CACHE_ENTRY.match(line)
119 for line_no, line in enumerate(cache):
120 entry = CMakeCacheEntry.from_line(line, line_no)
A Dsize_calc.py217 for line in objdump_output:
218 words = line.split()
308 for idx, line in enumerate(reversed(file_content)):
310 if re.match(pattern=PATTERN_SEARCHED_LINE, string=line):
349 return [line.strip("\n").rstrip("%") for line in text_lines] if text_lines else []
360 for line in text_lines:
361 line = [
364 string=line
367 result.append(list(filter(None, line)))
387 for idx, line in enumerate(data_lines):
[all …]
A Dharness.py153 def process_test(self, line): argument
155 self.parse_record(line)
164 if self.RUN_PASSED in line:
196 def handle(self, line): argument
295 def handle(self, line): argument
332 self.process_test(line)
569 if not line:
713 def handle(self, line): argument
924 def handle(self, line): argument
989 self.process_test(line)
[all …]
/scripts/west_commands/
A Dexport.py56 msg = [line for line in lines if not line.startswith('-- ')]
/scripts/ruff/
A Dgen_format_exclude.py15 for line in sys.stdin:
16 if line.startswith("Would reformat: "):

Completed in 31 milliseconds

1234