@@ -298,7 +298,7 @@ ZTEST(orchestrator_boot_tests, test_valid_root_app_envelope)
298298 int err = suit_orchestrator_entry ();
299299
300300 /* THEN orchestrator succeeds... */
301- zassert_equal (0 , err , "Orchestrator not initialized" );
301+ zassert_equal (0 , err , "Valid envelopes not accepted (err: %d)" , err );
302302 /* ... and the emergency flag is not set... */
303303 zassert_equal (SUIT_PLAT_ERR_NOT_FOUND , suit_storage_report_read (0 , & buf , & len ),
304304 "Emergency flag set" );
@@ -332,13 +332,14 @@ ZTEST(orchestrator_boot_tests, test_seq_no_validate)
332332 /* WHEN orchestrator is executed */
333333 int err = suit_orchestrator_entry ();
334334
335- /* THEN orchestrator fails (no support for reboots)... */
336- zassert_equal (- ENOTSUP , err , "Orchestrator did not fail" );
337- /* ... and the emergency flag is set... */
338- zassert_equal (SUIT_PLAT_SUCCESS , suit_storage_report_read (0 , & buf , & len ),
339- "Emergency flag not set" );
340- /* ... and the execution mode remains unchanged */
341- zassert_equal (EXECUTION_MODE_INVOKE , suit_execution_mode_get (), "Execution mode modified" );
335+ /* THEN orchestrator succeeds... */
336+ zassert_equal (0 , err , "Envelope without validate sequence not accepted (err: %d)" , err );
337+ /* ... and the emergency flag is not set... */
338+ zassert_equal (SUIT_PLAT_ERR_NOT_FOUND , suit_storage_report_read (0 , & buf , & len ),
339+ "Emergency flag set" );
340+ /* ... and the execution mode is set to the POST INVOKE */
341+ zassert_equal (EXECUTION_MODE_POST_INVOKE , suit_execution_mode_get (),
342+ "Execution mode modified" );
342343}
343344
344345ZTEST (orchestrator_boot_tests , test_seq_validate_fail )
@@ -502,11 +503,11 @@ ZTEST(orchestrator_boot_tests, test_seq_validate_load_invoke)
502503 /* WHEN orchestrator is executed */
503504 int err = suit_orchestrator_entry ();
504505
505- /* THEN orchestrator fails (no support for reboots) ... */
506- zassert_equal (0 , err , "Orchestrator not initialized" );
506+ /* THEN orchestrator succeeds ... */
507+ zassert_equal (0 , err , "Envelope with three sequences not accepted (err: %d)" , err );
507508 /* ... and the emergency flag is not set... */
508509 zassert_equal (SUIT_PLAT_ERR_NOT_FOUND , suit_storage_report_read (0 , & buf , & len ),
509- "Emergency flag not set" );
510+ "Emergency flag set" );
510511 /* ... and the execution mode is set to the POST INVOKE */
511512 zassert_equal (EXECUTION_MODE_POST_INVOKE , suit_execution_mode_get (),
512513 "Execution mode modified" );
0 commit comments