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

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