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

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