test/bdevperf: Keep bdevperf output around
Potential bdevperf failure is hidden out from the user as it's std{out,err} is redirected to a file which is purged upon exiting from the test. For the sake of debugging, print contents of the output file before removing it. Change-Id: Ifd0ff94aa1812ec518c60ada5a63342d7d5b80dd Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3917 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
f574014a24
commit
e1dc45b0fa
@ -34,7 +34,7 @@ $rpc_py nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode1 -t $TEST_TRANSPOR
|
||||
$rootdir/test/bdev/bdevperf/bdevperf -z -r $bdevperf_rpc_sock -q 128 -o 4096 -w verify -t 1 -f &> $testdir/try.txt &
|
||||
bdevperf_pid=$!
|
||||
|
||||
trap 'process_shm --id $NVMF_APP_SHM_ID; rm -f $testdir/try.txt; killprocess $bdevperf_pid; nvmftestfini; exit 1' SIGINT SIGTERM EXIT
|
||||
trap 'process_shm --id $NVMF_APP_SHM_ID; pap "$testdir/try.txt"; killprocess $bdevperf_pid; nvmftestfini; exit 1' SIGINT SIGTERM EXIT
|
||||
waitforlisten $bdevperf_pid $bdevperf_rpc_sock
|
||||
|
||||
# Create a controller from the first IP/Port combination.
|
||||
@ -75,5 +75,5 @@ $rpc_py nvmf_delete_subsystem nqn.2016-06.io.spdk:cnode1
|
||||
|
||||
trap - SIGINT SIGTERM EXIT
|
||||
|
||||
rm -f $testdir/try.txt
|
||||
pap "$testdir/try.txt"
|
||||
nvmftestfini
|
||||
|
Loading…
Reference in New Issue
Block a user