Blame SOURCES/0128-ndtest-ack-shutdown-count-Skip-the-test-on-ndtest.patch

e0018b
From 6e85cac1958f920f231b94ff570ac0e434595b7d Mon Sep 17 00:00:00 2001
e0018b
From: Shivaprasad G Bhat <sbhat@linux.ibm.com>
e0018b
Date: Tue, 25 Jan 2022 02:34:25 +0530
e0018b
Subject: [PATCH 128/217] ndtest/ack-shutdown-count: Skip the test on ndtest
e0018b
e0018b
The PAPR has non-latched dirty shutdown implementation.
e0018b
The test is enabling/disabling the LSS latch which is
e0018b
irrelavent from PAPR pov. Skip the test.
e0018b
e0018b
Link: https://lore.kernel.org/r/20220124210425.1493410-1-vaibhav@linux.ibm.com
e0018b
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
e0018b
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
e0018b
---
e0018b
 test/ack-shutdown-count-set.c | 4 ++++
e0018b
 1 file changed, 4 insertions(+)
e0018b
e0018b
diff --git a/test/ack-shutdown-count-set.c b/test/ack-shutdown-count-set.c
e0018b
index a9e95c6..f091a40 100644
e0018b
--- a/test/ack-shutdown-count-set.c
e0018b
+++ b/test/ack-shutdown-count-set.c
e0018b
@@ -117,6 +117,7 @@ static int test_ack_shutdown_count_set(int loglevel, struct ndctl_test *test,
e0018b
 
e0018b
 int main(int argc, char *argv[])
e0018b
 {
e0018b
+	char *test_env = getenv("NDCTL_TEST_FAMILY");
e0018b
 	struct ndctl_test *test = ndctl_test_new(0);
e0018b
 	struct ndctl_ctx *ctx;
e0018b
 	int rc;
e0018b
@@ -126,6 +127,9 @@ int main(int argc, char *argv[])
e0018b
 		return EXIT_FAILURE;
e0018b
 	}
e0018b
 
e0018b
+	if (test_env && strcmp(test_env, "PAPR") == 0)
e0018b
+		return ndctl_test_result(test, 77);
e0018b
+
e0018b
 	rc = ndctl_new(&ctx;;
e0018b
 	if (rc)
e0018b
 		return ndctl_test_result(test, rc);
e0018b
-- 
e0018b
2.27.0
e0018b