diff mbox

[ndctl] ndctl: force creation test to use nfit_test

Message ID 20160129152707.19103.86188.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State Accepted
Commit e6b6639897c4
Headers show

Commit Message

Dan Williams Jan. 29, 2016, 3:27 p.m. UTC
Make the namespace creation test safe to run on a platform with an
actual NFIT.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 test/create.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/test/create.sh b/test/create.sh
index c49d15d455f5..61ffe5fcc424 100755
--- a/test/create.sh
+++ b/test/create.sh
@@ -15,7 +15,7 @@  $NDCTL enable-region $BUS all
 
 # create pmem
 dev="x"
-json=$($NDCTL create-namespace -t pmem -m raw)
+json=$($NDCTL create-namespace $BUS -t pmem -m raw)
 eval $(echo $json | sed -e "$json2var")
 [ $dev = "x" ] && echo "fail: $LINENO" && exit 1
 [ $mode != "raw" ] && echo "fail: $LINENO" &&  exit 1
@@ -33,7 +33,7 @@  eval $(echo $json | sed -e "$json2var")
 
 # create blk
 dev="x"
-json=$($NDCTL create-namespace -t blk -m raw)
+json=$($NDCTL create-namespace $BUS -t blk -m raw)
 eval $(echo $json | sed -e "$json2var")
 [ $dev = "x" ] && echo "fail: $LINENO" && exit 1
 [ $mode != "raw" ] && echo "fail: $LINENO" &&  exit 1