tests/nvme: set hostnqn after hostid uuidgen
PATCH v2 1/1 tests/nvme: set hostnqn after hostid uuidgen
hostid will not be appended to hostnqn as it was generated after set hostnqn, so let's set hostnqn after hostid generated.
Reviewed-by Hannes Reinecke <[email protected]>
Signed-off-by Yi Zhang <[email protected]>
--- tests/nvme/041 | 3 ++- tests/nvme/042 | 3 ++- tests/nvme/043 | 3 ++- tests/nvme/044 | 3 ++- tests/nvme/045 | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-)
tests/nvme/041 +2 -1
@@ -23,7 +23,7 @@ test() { local port local subsys_name="blktests-subsystem-1" local hostid - local hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" + local hostnqn local file_path="${TMPDIR}/img" local hostkey local ctrldev
@@ -35,6 +35,7 @@ test() { echo "uuidgen failed" return 1 fi + hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)" if [ -z "$hostkey" ] ; then echo "nvme gen-dhchap-key failed"
tests/nvme/042 +2 -1
@@ -23,7 +23,7 @@ test() { local port local subsys_name="blktests-subsystem-1" local hostid - local hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" + local hostnqn local file_path="${TMPDIR}/img" local hmac local key_len
@@ -37,6 +37,7 @@ test() { echo "uuidgen failed" return 1 fi + hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" _setup_nvmet
tests/nvme/043 +2 -1
@@ -24,7 +24,7 @@ test() { local port local subsys_name="blktests-subsystem-1" local hostid - local hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" + local hostnqn local file_path="${TMPDIR}/img" local hash local dhgroup
@@ -38,6 +38,7 @@ test() { echo "uuidgen failed" return 1 fi + hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" _setup_nvmet
tests/nvme/044 +2 -1
@@ -24,7 +24,7 @@ test() { local port local subsys_name="blktests-subsystem-1" local hostid - local hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" + local hostnqn local file_path="${TMPDIR}/img" local hostkey local ctrlkey
@@ -37,6 +37,7 @@ test() { echo "uuidgen failed" return 1 fi + hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)" if [ -z "$hostkey" ] ; then
tests/nvme/045 +2 -1
@@ -24,7 +24,7 @@ test() { local port local subsys_name="blktests-subsystem-1" local hostid - local hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" + local hostnqn local file_path="${TMPDIR}/img" local hostkey local new_hostkey
@@ -39,6 +39,7 @@ test() { echo "uuidgen failed" return 1 fi + hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)" if [ -z "$hostkey" ] ; then
Signature · 1 line
2.34.1
Shinichiro Kawasaki
AppliedQuoted 5 lines · Yi Zhang
hostid will not be appended to hostnqn as it was generated after set hostnqn, so let's set hostnqn after hostid generated.
Reviewed-by Hannes Reinecke <[email protected]>Signed-off-by Yi Zhang <[email protected]>
Thanks, applied.
Signature · 1 line
Shin'ichiro Kawasaki