fix: allow partial success for DA test case

This patch returns a SUCCESS error code on partial success of DA
testcase so that TF-RMM can progress with partial merge of DA
patch stack. This will be reverted when the entire DA
flow is implemented in TF-RMM.

Change-Id: Ia28da05efd93d8290c2cfc879e09ff796a5797d6
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
diff --git a/tftf/tests/runtime_services/host_realm_managment/host_rmi_da_flow.c b/tftf/tests/runtime_services/host_realm_managment/host_rmi_da_flow.c
index 9a140ac..ce85080 100644
--- a/tftf/tests/runtime_services/host_realm_managment/host_rmi_da_flow.c
+++ b/tftf/tests/runtime_services/host_realm_managment/host_rmi_da_flow.c
@@ -47,6 +47,7 @@
 	int rc;
 	bool realm_rc;
 	struct realm realm;
+	test_result_t result = TEST_RESULT_FAIL;
 
 	CHECK_DA_SUPPORT_IN_RMI(rmi_feat_reg0);
 	SKIP_TEST_IF_DOE_NOT_SUPPORTED(pdev_bdf, doe_cap_base);
@@ -106,6 +107,8 @@
 						 &public_key_algo);
 	if (rc != 0) {
 		ERROR("Get public key failed\n");
+		/* TF-RMM has support till here. Change error code temporarily */
+		result = TEST_RESULT_SUCCESS;
 		goto err_pdev_reclaim;
 	}
 
@@ -185,7 +188,7 @@
 err_pdev_reclaim:
 	(void)host_destroy_realm(&realm);
 	(void)host_pdev_reclaim(h_pdev);
-	return TEST_RESULT_FAIL;
+	return result;
 }
 
 /*