File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
features/storage/TESTS/kvstore Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,9 @@ static void kvstore_init()
153153
154154 res = kvstore->init ();
155155 TEST_ASSERT_EQUAL_ERROR_CODE (MBED_SUCCESS, res);
156+ #if DEVICEKEY_ENABLED
157+ DeviceKey::get_instance ().generate_root_of_trust ();
158+ #endif
156159}
157160
158161// deinit the blockdevice
@@ -902,9 +905,6 @@ int main()
902905 total_num_cases++;
903906 }
904907 }
905- #if DEVICEKEY_ENABLED
906- DeviceKey::get_instance ().generate_root_of_trust ();
907- #endif
908908 Specification specification (greentea_test_setup, cases, total_num_cases,
909909 greentea_test_teardown_handler, default_handler);
910910
Original file line number Diff line number Diff line change @@ -152,6 +152,9 @@ static void kvstore_init()
152152
153153 res = kvstore->init ();
154154 TEST_ASSERT_EQUAL_ERROR_CODE (MBED_SUCCESS, res);
155+ #if DEVICEKEY_ENABLED
156+ DeviceKey::get_instance ().generate_root_of_trust ();
157+ #endif
155158}
156159
157160// deinit the blockdevice
@@ -885,9 +888,6 @@ int main()
885888 }
886889 }
887890
888- #if DEVICEKEY_ENABLED
889- DeviceKey::get_instance ().generate_root_of_trust ();
890- #endif
891891 Specification specification (greentea_test_setup, cases, total_num_cases,
892892 greentea_test_teardown_handler, default_handler);
893893
You can’t perform that action at this time.
0 commit comments