File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 15
15
See the License for the specific language governing permissions and
16
16
limitations under the License.
17
17
"""
18
+ # How to run this test?
19
+ #
20
+ # Note! You must be in the mbed-os -folder!
21
+ #
22
+ # python -m pytest tools/test/targets/target_test.py
23
+ #
18
24
import os
19
25
import sys
20
26
import shutil
@@ -39,6 +45,7 @@ def test_device_name():
39
45
40
46
def test_bl_has_sectors ():
41
47
"""Assert a bootloader supporting pack has sector information"""
48
+ # ToDo: validity checks for the information IN the sectors!
42
49
cache = Cache (True , True )
43
50
named_targets = (
44
51
target for target in TARGETS if
@@ -48,6 +55,9 @@ def test_bl_has_sectors():
48
55
assert target .device_name in cache .index ,\
49
56
("Target %s contains invalid device_name %s" %
50
57
(target .name , target .device_name ))
58
+ assert "sectors" in cache .index [target .device_name ],\
59
+ ("Target %s does not have sectors" %
60
+ (target .name ))
51
61
assert cache .index [target .device_name ]["sectors" ],\
52
62
("Device name %s is misssing sector information" %
53
63
(target .device_name ))
You can’t perform that action at this time.
0 commit comments