test: restore rpc_py to point to rpc.py instead of rpc_cmd
rpc_cmd function does not tolerate piping arguments into it, so code execution skips the parts responsible for generating a return code. The code is equal to nothing or "", which then is compared with a value, ultimately erroring out the whole test. To avoid these problems restore rpc_py varible declaration in multiconnection.sh and ext4test.sh scripts. Additionally added a comment in compress.sh to match ext4test.sh and multiconnection.sh. Change-Id: I4fb5f737d4e97d602f522b810363bc0d4522bf0d Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14356 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com> Reviewed-by: Kamil Godzwon <kamilx.godzwon@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
b50af42b62
commit
35a9ddb5b6
@ -8,6 +8,9 @@ plugindir=$rootdir/examples/bdev/fio_plugin
|
||||
source "$rootdir/scripts/common.sh"
|
||||
source "$rootdir/test/common/autotest_common.sh"
|
||||
source "$rootdir/test/nvmf/common.sh"
|
||||
|
||||
# Declare rpc_py here, because its default value points to rpc_cmd function,
|
||||
# which does not tolerate piping arguments into it.
|
||||
rpc_py="$rootdir/scripts/rpc.py"
|
||||
|
||||
function error_cleanup() {
|
||||
|
@ -7,6 +7,9 @@ source $rootdir/test/iscsi_tgt/common.sh
|
||||
|
||||
iscsitestinit
|
||||
|
||||
# Declare rpc_py here, because its default value points to rpc_cmd function,
|
||||
# which does not tolerate piping arguments into it.
|
||||
rpc_py="$rootdir/scripts/rpc.py"
|
||||
node_base="iqn.2013-06.com.intel.ch.spdk"
|
||||
|
||||
timing_enter start_iscsi_tgt
|
||||
|
@ -7,6 +7,9 @@ source $rootdir/test/iscsi_tgt/common.sh
|
||||
|
||||
iscsitestinit
|
||||
|
||||
# Declare rpc_py here, because its default value points to rpc_cmd function,
|
||||
# which does not tolerate piping arguments into it.
|
||||
rpc_py="$rootdir/scripts/rpc.py"
|
||||
fio_py="$rootdir/scripts/fio-wrapper"
|
||||
|
||||
CONNECTION_NUMBER=30
|
||||
|
Loading…
Reference in New Issue
Block a user