Blame SOURCES/0073-ndctl-test-Skip-BLK-flags-checks.patch

2eb93d
From 756a6598a0fa6cebdd0e98564af089ca6b463fb1 Mon Sep 17 00:00:00 2001
2eb93d
From: Dan Williams <dan.j.williams@intel.com>
2eb93d
Date: Wed, 5 Jan 2022 13:32:05 -0800
2eb93d
Subject: [PATCH 073/217] ndctl/test: Skip BLK flags checks
2eb93d
2eb93d
With the removal of BLK-mode support, test/libndctl will fail to detect the
2eb93d
JEDEC format on the nfit_test bus. Report + skip that check rather than
2eb93d
fail the test when that happens.
2eb93d
2eb93d
Link: https://lore.kernel.org/r/164141832529.3990253.16538298357542644310.stgit@dwillia2-desk3.amr.corp.intel.com
2eb93d
Tested-by: Alison Schofield <alison.schofield@intel.com>
2eb93d
Tested-by: Vaibhav Jain <vaibhav@linux.ibm.com>
2eb93d
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2eb93d
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
2eb93d
---
2eb93d
 test/libndctl.c | 4 ++--
2eb93d
 1 file changed, 2 insertions(+), 2 deletions(-)
2eb93d
2eb93d
diff --git a/test/libndctl.c b/test/libndctl.c
2eb93d
index c0e4b4c..1e97926 100644
2eb93d
--- a/test/libndctl.c
2eb93d
+++ b/test/libndctl.c
2eb93d
@@ -2535,7 +2535,7 @@ static int check_dimms(struct ndctl_bus *bus, struct dimm *dimms, int n,
2eb93d
 				fprintf(stderr, "dimm%d expected formats: %d got: %d\n",
2eb93d
 						i, dimms[i].formats,
2eb93d
 						ndctl_dimm_get_formats(dimm));
2eb93d
-				return -ENXIO;
2eb93d
+				fprintf(stderr, "continuing...\n");
2eb93d
 			}
2eb93d
 			for (j = 0; j < dimms[i].formats; j++) {
2eb93d
 				if (ndctl_dimm_get_formatN(dimm, j) != dimms[i].format[j]) {
2eb93d
@@ -2543,7 +2543,7 @@ static int check_dimms(struct ndctl_bus *bus, struct dimm *dimms, int n,
2eb93d
 						"dimm%d expected format[%d]: %d got: %d\n",
2eb93d
 							i, j, dimms[i].format[j],
2eb93d
 							ndctl_dimm_get_formatN(dimm, j));
2eb93d
-					return -ENXIO;
2eb93d
+					fprintf(stderr, "continuing...\n");
2eb93d
 				}
2eb93d
 			}
2eb93d
 		}
2eb93d
-- 
2eb93d
2.27.0
2eb93d