Spdk/test/common
Darek Stojaczyk 3b660ea857 autotest/common: factor out xtrace disable/restore
Factor out `set -x` and +x to separate functions. Changing
xtraces is not so trivial and we'll be improving it later
on. We can't factor out the code as is due to local variables,
so we already simplify it a bit in this patch.

Change-Id: Iecbf5cedf821b7b1b71da933ceb158761881a843
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453246
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-05-10 22:08:13 +00:00
..
config scripts: vm_setup.sh add install vpp for ubuntu 2019-05-01 17:44:29 +00:00
lib thread: Call spdk_thread_lib_init in unit tests 2019-05-06 17:34:31 +00:00
autotest_common.sh autotest/common: factor out xtrace disable/restore 2019-05-10 22:08:13 +00:00