numam-spdk/test/bdev
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
..
bdevio test/bdevio: Use local instance of cpuset in test_main() 2020-01-03 08:32:38 +00:00
bdevperf bdevperf: Change g_run_failed to g_run_rc and use it correctly 2020-01-03 15:07:58 +00:00
bdev_raid.sh test: add timing calls to run_test 2019-12-10 17:12:03 +00:00
bdev.conf.in test/blockdev: remove dependency on brd kernel module 2019-07-23 22:54:39 +00:00
blockdev.sh test: eliminate case and suite from run_test 2019-12-24 08:24:42 +00:00
gen_crypto.sh scripts: use -n instead of ! -z 2019-08-08 21:27:40 +00:00
Makefile test: move the bdev directory up one level 2018-03-23 19:45:09 -04:00
nbd_common.sh test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00