test/interrupt: Fix syntax
return was not used in proper context. Let the errexit do the job to signal a failure. Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I731545c913858286009168041030b4b362cebc32 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9987 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
f395a40057
commit
e20b830abd
@ -29,9 +29,7 @@ remaining_pollers+=$(jq -r '.timed_pollers[].name' <<< $app_thread)
|
|||||||
|
|
||||||
# Since bdev_aio created pollers were already unregistered, so
|
# Since bdev_aio created pollers were already unregistered, so
|
||||||
# remaining_pollers should be same with native_pollers.
|
# remaining_pollers should be same with native_pollers.
|
||||||
if [[ "$remaining_pollers" != "$native_pollers" ]]; then
|
[[ "$remaining_pollers" == "$native_pollers" ]]
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
trap - SIGINT SIGTERM EXIT
|
trap - SIGINT SIGTERM EXIT
|
||||||
killprocess $intr_tgt_pid
|
killprocess $intr_tgt_pid
|
||||||
|
Loading…
Reference in New Issue
Block a user