Spdk/test/common
Michal Berger a9337f72e0 test/common: Check exit status of NOT() execution more carefully
The NOT() function is meant to report a success when given test
fails. This negative testing is meant for specific cases, however,
there may be some circumstances where application failed, but not
for the reasons the tests was aiming for, e.g. upon receiving
signals from the kernel, like SIGILL, SIGSEGV, etc.

To make sure the test is aborted in such a scenario, check exit
status of the execution more carefully. If it matches any of the
defined signals make sure to fail the test. By default, all signals
which generate cores are looked up and SIGKILL which may be sent
out by the kernel as well (in case of the oom-killer).

Also, $EXIT_STATUS var is provided to specifically declare which
exit status NOT() should be looking for if process terminates with
a failure (i.e., for any other reason then receiving a signal).

Change-Id: I67b42ef038ef4553aceaf96d4da139858d819f22
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3448
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2020-08-10 11:29:02 +00:00
..
config pkgdep/git: [QAT] Fix logic while checking qat_service status 2020-08-10 11:27:23 +00:00
lib env_dpdk: move NVMe PCI driver definition to the nvme lib 2020-07-24 21:42:26 +00:00
applications.sh test/common: Add spdk_dd to applications.sh 2020-07-23 07:24:08 +00:00
autotest_common.sh test/common: Check exit status of NOT() execution more carefully 2020-08-10 11:29:02 +00:00
skipped_build_files.txt lib/makefile: move vhost_user.c into lib/virtio directory 2020-06-09 07:37:43 +00:00
skipped_tests.txt test/cuse: run namespace managment test if device supports it 2020-06-17 07:20:55 +00:00