File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 23
23
#include " greentea-client/test_env.h"
24
24
#include " unity/unity.h"
25
25
#include " utest/utest.h"
26
+ #include " psa/lifecycle.h"
26
27
#include " psa_initial_attestation_api.h"
27
28
#include " psa_attest_inject_key.h"
28
29
#include < string.h>
@@ -126,11 +127,6 @@ utest::v1::status_t case_teardown_handler(const Case *const source, const size_t
126
127
return greentea_case_teardown_handler (source, passed, failed, reason);
127
128
}
128
129
129
- utest::v1::status_t case_setup_handler (const Case *const source, const size_t index_of_case)
130
- {
131
- return greentea_case_setup_handler (source, index_of_case);
132
- }
133
-
134
130
Case cases[] = {
135
131
Case (" PSA attestation get token" , check_initial_attestation_get_token, case_teardown_handler),
136
132
};
@@ -139,6 +135,8 @@ Specification specification(greentea_test_setup, cases);
139
135
140
136
int main ()
141
137
{
138
+ psa_status_t status = mbed_psa_reboot_and_request_new_security_state (PSA_LIFECYCLE_ASSEMBLY_AND_TEST);
139
+ TEST_ASSERT_EQUAL (PSA_LIFECYCLE_SUCCESS, status);
142
140
#if (defined(COMPONENT_PSA_SRV_IPC) || defined(MBEDTLS_ENTROPY_NV_SEED))
143
141
uint8_t seed[MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE] = {0 };
144
142
/* inject some seed for test*/
You can’t perform that action at this time.
0 commit comments