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:
Michal Berger 2021-10-25 14:05:21 +02:00 committed by Jim Harris
parent 864580073f
commit ad672ce249

View File

@ -29,9 +29,7 @@ remaining_pollers+=$(jq -r '.timed_pollers[].name' <<< $app_thread)
# Since bdev_aio created pollers were already unregistered, so
# remaining_pollers should be same with native_pollers.
if [[ "$remaining_pollers" != "$native_pollers" ]]; then
return 1
fi
[[ "$remaining_pollers" == "$native_pollers" ]]
trap - SIGINT SIGTERM EXIT
killprocess $intr_tgt_pid