The test is accidentally hard-coding the test region, "7", which we
should be determining programmatically. Replace "7" with "$region", the
largest pmem region on the "nfit_test.0" bus. Otherwise, the test can
fail just based on the initialization order of various nvdimm buses.

Signed-off-by: Dan Williams <[email protected]>
---
 test/label-compat.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/label-compat.sh b/test/label-compat.sh
index f103f64ae7ff..ed26a583a320 100755
--- a/test/label-compat.sh
+++ b/test/label-compat.sh
@@ -46,7 +46,7 @@ done
 
 $NDCTL enable-region $BUS all
 
-len=$($NDCTL list -r 7 -N | jq -r "length")
+len=$($NDCTL list -r $region -N | jq -r "length")
 
 if [ -z $len ]; then
        rc=1

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to