Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510
Diff: tools/test/config_test/test09/test_data.py
- Revision:
- 0:098463de4c5d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/test/config_test/test09/test_data.py Wed Jan 25 20:34:15 2017 +0000
@@ -0,0 +1,34 @@
+# This build on top of test6 by adding an invalid override in mbed_app_override.json for b1_label.
+# This will prevent the configuration for working for b1 and both, but it should still
+# work for base and b2.
+
+expected_results = {
+ "base": {
+ "desc": "override values based on labels with libs (no labels)",
+ "app.app1": "v_app1",
+ "app.app2": "v_app2",
+ "lib1.p1": "v_p1_lib1",
+ "lib1.p2": "v_p2_lib1",
+ "lib1.p3": "v_p3_lib1",
+ "lib2.p1": "v_p1_lib2",
+ "lib2.p2": "v_p2_lib2"
+ },
+ "b1": {
+ "desc": "override values based on labels with libs - invalid override (first label)",
+ "exception_msg": "Attempt to override undefined parameter 'app.app_wrong' in 'application[b1_label]"
+ },
+ "b2": {
+ "desc": "override values based on labels with libs (second label)",
+ "app.app1": "v_app1",
+ "app.app2": "v_app2[b2_label]",
+ "lib1.p1": "v_p1_lib1",
+ "lib1.p2": "v_p2_lib1[b2_label]",
+ "lib1.p3": "v_p3_lib1",
+ "lib2.p1": "v_p1_lib2[b2_label]",
+ "lib2.p2": "v_p2_lib2[b2_label]"
+ },
+ "both": {
+ "desc": "override values based on labels with libs - invalid override (both labels)",
+ "exception_msg": "Attempt to override undefined parameter 'app.app_wrong' in 'application[b1_label]"
+ },
+}