numam-spdk/test/blobfs
Michal Berger 83086b5973 test/blobfs: Refactor exit behavior
The on_error_exit() function was being called via the local ERR trap
to cleanup after the tests in case any failure occurred during the
execution. However, this was masking the backtrace trap so the
on_error_exit() had to also call print_backtrace() to compensate -
this was resulting in an additional function being unnecessarily
placed onto the stack and included in the actual backtrace.

Avoid the above by refactoring on_error_exit() into simple cleanup()
function called upon exit()ing from the script. The rationale is that
cleanup has to happen regardless if the script failed or not and
elements like $conf_file are always created from the very scratch by
the script itself anyway prior running the tests.

Change-Id: I6bb8f4155525037624f0bd5aab288f8c502141f6
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/456
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2020-02-10 10:24:01 +00:00
..
fuse blobfs/fuse: put FUSE code in module blobfs_bdev 2019-10-15 16:25:09 +00:00
mkfs configure: add --with-fuse option 2019-10-10 16:20:46 +00:00
rocksdb test: move report_test_completion into run_test 2020-01-14 07:49:08 +00:00
blobfs.sh test/blobfs: Refactor exit behavior 2020-02-10 10:24:01 +00:00
Makefile blobfs/fuse: put FUSE code in module blobfs_bdev 2019-10-15 16:25:09 +00:00