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

Function bsp_update_kconfig_testcases

tools/mkdist.py:112–122  ·  view source on GitHub ↗
(dist_dir)

Source from the content-addressed store, hash-verified

110 f.write(line)
111
112def bsp_update_kconfig_testcases(dist_dir):
113 # delete testcases in rt-thread/Kconfig
114 if not os.path.isfile(os.path.join(dist_dir, 'rt-thread/Kconfig')):
115 return
116
117 with open(os.path.join(dist_dir, 'rt-thread/Kconfig'), 'r') as f:
118 data = f.readlines()
119 with open(os.path.join(dist_dir, 'rt-thread/Kconfig'), 'w') as f:
120 for line in data:
121 if line.find('Kconfig.utestcases') == -1:
122 f.write(line)
123
124def bsp_update_kconfig(dist_dir):
125 # change RTT_ROOT in Kconfig

Callers 1

MkDistFunction · 0.85

Calls 3

openFunction · 0.50
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected