Skip to content

Commit 5994173

Browse files
authored
Merge pull request #2032 from theotherjimmy/fix-program-cycle-s
[Tools] Force program_cycle_s to be used as an attribue everywhere
2 parents 7bd9952 + 855cc91 commit 5994173

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/make.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
# Import pyserial: https://pypi.python.org/pypi/pyserial
284284
from serial import Serial
285285

286-
sleep(TARGET_MAP[mcu].program_cycle_s())
286+
sleep(TARGET_MAP[mcu].program_cycle_s)
287287

288288
serial = Serial(options.serial, timeout = 1)
289289
if options.baud:

tools/targets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def __init__(self, name):
215215
# Create also a list with only the names of the targets in the resolution order
216216
self.resolution_order_names = [t[0] for t in self.resolution_order]
217217

218+
@property
218219
def program_cycle_s(self):
219220
try:
220221
return self.__getattr__("program_cycle_s")

tools/test_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def handle_mut(self, mut, data, target_name, toolchain_name, test_loops=1):
898898
reset=host_test_reset,
899899
reset_tout=reset_tout,
900900
copy_method=selected_copy_method,
901-
program_cycle_s=target_by_mcu.program_cycle_s())
901+
program_cycle_s=target_by_mcu.program_cycle_s)
902902
single_test_result, single_test_output, single_testduration, single_timeout = host_test_result
903903

904904
# Store test result
@@ -2083,4 +2083,3 @@ def test_spec_from_test_builds(test_builds):
20832083
return {
20842084
"builds": test_builds
20852085
}
2086-

0 commit comments

Comments
 (0)