nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [ndctl PATCH] ndctl, rescan-partitions.sh: fix skipping for missing modules
@ 2018-04-05  4:37 Vishal Verma
  0 siblings, 0 replies; only message in thread
From: Vishal Verma @ 2018-04-05  4:37 UTC (permalink / raw)
  To: linux-nvdimm

rescan-partitions would fail if the nfit_test module was not found. Fix
by moving the modprobe attempt to earlier in the test.

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
 test/rescan-partitions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/rescan-partitions.sh b/test/rescan-partitions.sh
index 47f0b62..7ae0957 100755
--- a/test/rescan-partitions.sh
+++ b/test/rescan-partitions.sh
@@ -54,7 +54,6 @@ check_prereq "blockdev"
-	modprobe nfit_test
 	$ndctl disable-region -b "$bus" all
 	$ndctl zero-labels -b "$bus" all
 	$ndctl enable-region -b "$bus" all
@@ -97,6 +96,7 @@ test_mode()
 	$ndctl destroy-namespace $dev
+modprobe nfit_test
 test_mode "raw"

Linux-nvdimm mailing list

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

only message in thread, other threads:[~2018-04-05  4:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-05  4:37 [ndctl PATCH] ndctl, rescan-partitions.sh: fix skipping for missing modules Vishal Verma

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).