[PATCH 4/6] acpi: tcpa: Show test as skipped if table does not exist

Jeffrey Hugo jhugo at codeaurora.org
Fri Oct 14 19:17:20 UTC 2016


If the table does not exist, the error message states the test is being
skipped, however the test is categorized as aborted.  The majority of other
tests are categorized as skipped under this scenario.  Update the init path
to return a SKIP error to categorize the test result similar to other tests.

Signed-off-by: Jeffrey Hugo <jhugo at codeaurora.org>
---
 src/acpi/tcpa/tcpa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/acpi/tcpa/tcpa.c b/src/acpi/tcpa/tcpa.c
index d77a534..c731e16 100644
--- a/src/acpi/tcpa/tcpa.c
+++ b/src/acpi/tcpa/tcpa.c
@@ -33,7 +33,7 @@ static int tcpa_init(fwts_framework *fw)
 	}
 	if (table == NULL) {
 		fwts_log_error(fw, "ACPI TCPA table does not exist, skipping test");
-		return FWTS_ERROR;
+		return FWTS_SKIP;
 	}
 
 	return FWTS_OK;
-- 
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.




More information about the fwts-devel mailing list