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

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