Message ID | 20220124210425.1493410-1-vaibhav@linux.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6e85cac1958f920f231b94ff570ac0e434595b7d |
Headers | show |
Series | [ndctl,v3] ndtest/ack-shutdown-count: Skip the test on ndtest | expand |
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);