test/vhost: Replace error() with simple echo
In this particular case, error() is called before it's declared, hence bash complains that it's missing, failing to print out the actual error message. To not shuffle code around, simply replace this call with an echo to stderr. Signed-off-by: Michal Berger <michallinuxstuff@gmail.com> Change-Id: I6f0a6e5b0dfd6893aee6a66e6efdb9874245fafb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12427 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
03f8da8819
commit
fb41398ae7
@ -15,7 +15,7 @@ FIO_BIN=${FIO_BIN:-"$DEFAULT_FIO_BIN"}
|
||||
WORKDIR=$(readlink -f "$(dirname "$0")")
|
||||
|
||||
if ! hash $QEMU_IMG_BIN $QEMU_BIN; then
|
||||
error 'QEMU is not installed on this system. Unable to run vhost tests.'
|
||||
echo 'ERROR: QEMU is not installed on this system. Unable to run vhost tests.' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user