MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / exclude_utestcases

Function exclude_utestcases

tools/env_utility.py:329–341  ·  view source on GitHub ↗
(RTT_ROOT)

Source from the content-addressed store, hash-verified

327
328# Exclude utestcases
329def exclude_utestcases(RTT_ROOT):
330 if os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig.utestcases')):
331 return
332
333 if not os.path.isfile(os.path.join(RTT_ROOT, 'Kconfig')):
334 return
335
336 with open(os.path.join(RTT_ROOT, 'Kconfig'), 'r') as f:
337 data = f.readlines()
338 with open(os.path.join(RTT_ROOT, 'Kconfig'), 'w') as f:
339 for line in data:
340 if line.find('Kconfig.utestcases') == -1:
341 f.write(line)
342
343
344# fix locale for kconfiglib

Callers 3

menuconfigFunction · 0.85
guiconfigFunction · 0.85
defconfigFunction · 0.85

Calls 3

openFunction · 0.50
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected