nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ndctl PATCH v3] ndtest/ack-shutdown-count: Skip the test on ndtest
@ 2022-01-24 21:04 Vaibhav Jain
  0 siblings, 0 replies; only message in thread
From: Vaibhav Jain @ 2022-01-24 21:04 UTC (permalink / raw)
  To: nvdimm
  Cc: Shivaprasad G Bhat, Vaibhav Jain, Dan Williams, Vishal Verma,
	Aneesh Kumar K . V, Ira Weiny

From: Shivaprasad G Bhat <sbhat@linux.ibm.com>

The PAPR has non-latched dirty shutdown implementation.
The test is enabling/disabling the LSS latch which is
irrelavent from PAPR pov. Skip the test.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
---
Changelog:

Since v2-Resend:
https://lore.kernel.org/nvdimm/164009775299.743652.17082679043242402916.stgit@lep8c.aus.stglabs.ibm.com/
* Rebased this on top of latest ndctl-pending tree that includes changes to
switch to meson build system.
---
 test/ack-shutdown-count-set.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/ack-shutdown-count-set.c b/test/ack-shutdown-count-set.c
index a9e95c63b76c..f091a404bf9c 100644
--- a/test/ack-shutdown-count-set.c
+++ b/test/ack-shutdown-count-set.c
@@ -117,6 +117,7 @@ static int test_ack_shutdown_count_set(int loglevel, struct ndctl_test *test,
 
 int main(int argc, char *argv[])
 {
+	char *test_env = getenv("NDCTL_TEST_FAMILY");
 	struct ndctl_test *test = ndctl_test_new(0);
 	struct ndctl_ctx *ctx;
 	int rc;
@@ -126,6 +127,9 @@ int main(int argc, char *argv[])
 		return EXIT_FAILURE;
 	}
 
+	if (test_env && strcmp(test_env, "PAPR") == 0)
+		return ndctl_test_result(test, 77);
+
 	rc = ndctl_new(&ctx);
 	if (rc)
 		return ndctl_test_result(test, rc);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-24 21:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 21:04 [ndctl PATCH v3] ndtest/ack-shutdown-count: Skip the test on ndtest Vaibhav Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).