Spdk/test
Shuhei Matsumoto 801e76d8bf bdevperf: Change g_run_failed to g_run_rc and use it correctly
Change bool g_run_failed to int g_run_rc.  If any error is detected
during bdevperf running, negative return code is directly set to
g_run_rc. Then g_run_rc is passed to rpc_perform_tests_cb() or
bdevperf_fini().

Besides, we had updated g_run_failed even after spdk_app_start()
returned.  However return code of spdk_app_start() might not be of
bdevperf_run().  Hence change main() to return the return code of
spdk_app_start() simply without updating g_run_failed.

Additionally, even if g_target_count becomes zero in
spdk_bdevperf_shutdown_cb(), g_run_rc may indicate error.  So,
change spdk_bdevperf_shutdown_cb() to pass g_run_rc to
bdevperf_fini().

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ia85680679087c3106ba687d7e58027ae8ff4a5c7
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478833
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2020-01-03 15:07:58 +00:00
..
app app: Add cli options to print SPDK version 2019-11-15 18:25:31 +00:00
bdev bdevperf: Change g_run_failed to g_run_rc and use it correctly 2020-01-03 15:07:58 +00:00
blobfs test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
blobstore test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
common test/common: Mock CPU core operations for unit tests 2020-01-03 08:33:25 +00:00
compress test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
config_converter rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
env test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
event test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
ftl test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
fuzz test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00
ioat test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
iscsi_tgt test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
json_config test: Shellcheck - correct rule: Expanding an array 2019-11-27 07:08:57 +00:00
lvol test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
make test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00
nvme test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
nvmf test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
ocf test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
openstack test/openstack: Add possibility to reinstall devstack on required branch 2019-11-07 13:22:50 +00:00
pmem test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
rpc_client test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
spdkcli test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
unit lib/event: Add spdk_for_each_reactor to process event for each reactor 2020-01-03 08:33:25 +00:00
vhost test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
vmd test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00