Spdk/test/common
Michal Berger a8d016910a test/common: Make sure that extdebug is enabled as soon as possible
if given script, which executes under the debug tracer, fails before
xtrace_restore() is called, the BASH_ARGC[] will miss all the arguments
which were passed down till that very point. Similar case can be
experienced after tracer is disabled as then all the arguments hold by
BASH_ARG{C,V}[] become unavailable (i.e. until tracer is enabled again).

Since there's no actual benefit from toggling the extdebug (in fact, it
could break DEBUG|RETURN traps if ever used), enable it once when
autotest_common.sh is sourced and keep it enabled throughout entire
execution of given script.

Change-Id: I01001ead1570967a2e550d993f85f12b9f62553e
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/477
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>
2020-02-11 08:38:08 +00:00
..
config doc: Fix Markdown MD032 linter warnings 2020-02-06 09:46:06 +00:00
lib sock/posix: Add flush 2020-01-22 13:53:09 +00:00
autotest_common.sh test/common: Make sure that extdebug is enabled as soon as possible 2020-02-11 08:38:08 +00:00
skipped_build_files.txt autobuild: Confirm we are building all files w/ scanbuild 2020-01-22 13:50:17 +00:00
skipped_tests.txt test/bdev: remove the gpt conf file / parameterize tests 2020-01-22 13:50:17 +00:00