test/bdevperf: Replace code with existed function.

These codes are at the end of bdevperf_construct_jobs,
and they can be replaced by _bdevperf_construct_job_done.

Signed-off-by: yidong0635 <dongx.yi@intel.com>
Change-Id: I9bcae562a2a277f6131864ad2ea7b7f565135814
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5181
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
yidong0635 2020-11-20 09:14:38 -05:00 committed by Jim Harris
parent b8c99a3aad
commit 657e50a032

View File

@ -1607,15 +1607,7 @@ end:
bdevperf_construct_config_jobs();
}
if (--g_construct_job_count == 0) {
if (g_run_rc != 0) {
/* Something failed. */
bdevperf_test_done(NULL);
return;
}
bdevperf_test();
}
_bdevperf_construct_job_done(NULL);
}
static int