Spdk/test/common
Michal Berger c2feee4fef test/common: Free stderr fd from tracing
Consider this:

foo() { echo bar >&2 ; }
set -x
foobar=$(foo 2>&1)
[[ $foobar == "bar" ]]

The above test will fail since $foobar will also include tracing
strings as stderr is where set -x redirects the output. Since in
some cases this may troublesome, replace stderr with a dedicated
fd allocated dynamically.

Signed-off-by: Michal Berger <michalx.berger@intel.com>
Change-Id: Ia6609e4463b371c07fab42d2bd291c9e43742df5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8158
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-06-04 19:58:56 +00:00
..
config pkgdep/git: Remove 20.01 release workarounds 2021-05-24 10:10:41 +00:00
lib unittest/nvme_rdma: increase code coverage for nvme_rdma.c 2021-06-02 10:23:51 +00:00
applications.sh test/common: Add SPDK_APP wrapper for spdk_tgt 2021-01-07 13:38:26 +00:00
autotest_common.sh test/common: Free stderr fd from tracing 2021-06-04 19:58:56 +00:00
skipped_build_files.txt test/external_code: initial definitions for basic NVMe driver 2021-03-09 08:28:22 +00:00
skipped_tests.txt test/nvme: Add test application to verify Simple Copy Command support 2021-05-18 12:43:24 +00:00