test/nvme-cli: exit early if unsupported nvme-cli is used
Only spdk/nvme-cli fork with spdk-1.6 branch is supported. Even then this will be deprecated at some point in the future, in favor of nvme-cuse. This came up when fixing the tests to actually run. If unsupported nvme-cli is used, compilation succeeds and tests fail at the functional test part with non-obvious message : # ./nvme id-ctrl 0000:84:00.0 0000:84:00.0: No such file or directory Some of the CI machines need to be updated, but this check will make it easier to gauge what went wrong. Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Ia19121a6c49b9618b8fea9e13304e27089f13dcf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2948 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
d4658f693a
commit
9798e12bad
@ -831,6 +831,11 @@ function nvme_cli_build() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! grep -q "DEF_VER=v1.6" $spdk_nvme_cli/NVME-VERSION-GEN; then
|
||||
echo "SPDK supports only \"spdk/nvme-cli\" project on \"spdk-1.6\" branch."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Build against the version of SPDK under test
|
||||
pushd $spdk_nvme_cli
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user