Commit d326389d authored by Sebastian Brzezinka's avatar Sebastian Brzezinka Committed by Ben Walker
Browse files

test/sma: use smaller indention for the JSONs



Both tests sma/vhost_blk.sh and sma/vfiouser_qemu.sh
use two spaces indention for JSON

Signed-off-by: default avatarSebastian Brzezinka <sebastian.brzezinka@intel.com>
Change-Id: I59aedabe40852d45a606c82a875a49a182137f91
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14293


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 9f0d4f33
Loading
Loading
Loading
Loading
+31 −31
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ function create_device() {
	local pfid=${1:-1}
	local vfid=${2:-0}

	"$rootdir/scripts/sma-client.py" <<- EOF
	"$rootdir/scripts/sma-client.py" <<- CREATE
		{
		  "method": "CreateDevice",
		  "params": {
@@ -21,22 +21,22 @@ function create_device() {
		    }
		  }
		}
	EOF
	CREATE
}

function delete_device() {
	"$rootdir/scripts/sma-client.py" <<- EOF
	"$rootdir/scripts/sma-client.py" <<- DELETE
		{
		  "method": "DeleteDevice",
		  "params": {
		    "handle": "$1"
		  }
		}
	EOF
	DELETE
}

function attach_volume() {
	"$rootdir/scripts/sma-client.py" <<- EOF
	"$rootdir/scripts/sma-client.py" <<- ATTACH
		{
		  "method": "AttachVolume",
		  "params": {
@@ -46,11 +46,11 @@ function attach_volume() {
		    }
		  }
		}
	EOF
	ATTACH
}

function detach_volume() {
	"$rootdir/scripts/sma-client.py" <<- EOF
	"$rootdir/scripts/sma-client.py" <<- DETACH
		{
		  "method": "DetachVolume",
		  "params": {
@@ -58,7 +58,7 @@ function detach_volume() {
		    "volume_id": "$(uuid2base64 $2)"
		  }
		}
	EOF
	DETACH
}

function vm_count_nvme() {
+18 −18
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ function cleanup() {
}

function create_device() {
	"$rootdir/scripts/sma-client.py" <<- EOF
	"$rootdir/scripts/sma-client.py" <<- CREATE
		{
		  "method": "CreateDevice",
		  "params": {
@@ -27,18 +27,18 @@ function create_device() {
		    }
		  }
		}
	EOF
	CREATE
}

function delete_device() {
	"$rootdir/scripts/sma-client.py" <<- EOF
	"$rootdir/scripts/sma-client.py" <<- DELETE
		{
		  "method": "DeleteDevice",
		  "params": {
		    "handle": "$1"
		  }
		}
	EOF
	DELETE
}

trap "cleanup; exit 1" SIGINT SIGTERM EXIT