From patchwork Fri Jan 29 15:27:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 8164341 Return-Path: X-Original-To: patchwork-linux-nvdimm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8D6539F440 for ; Fri, 29 Jan 2016 15:27:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C358B2024F for ; Fri, 29 Jan 2016 15:27:35 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C735520225 for ; Fri, 29 Jan 2016 15:27:34 +0000 (UTC) Received: from ml01.vlan14.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id ABBF71A22C4; Fri, 29 Jan 2016 07:27:34 -0800 (PST) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by ml01.01.org (Postfix) with ESMTP id D18E51A22C4 for ; Fri, 29 Jan 2016 07:27:32 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 29 Jan 2016 07:27:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,364,1449561600"; d="scan'208";a="891912413" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.136]) by fmsmga001.fm.intel.com with ESMTP; 29 Jan 2016 07:27:32 -0800 Subject: [ndctl PATCH] ndctl: force creation test to use nfit_test From: Dan Williams To: linux-nvdimm@lists.01.org Date: Fri, 29 Jan 2016 07:27:08 -0800 Message-ID: <20160129152707.19103.86188.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make the namespace creation test safe to run on a platform with an actual NFIT. Signed-off-by: Dan Williams --- test/create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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