test/nvmf_example: Remove duplicated test code.
Only need to add command about sudo -u "$USER" for non root user. Signed-off-by: yidong0635 <dongx.yi@intel.com> Change-Id: I3b6dbea0175a60b19627cd64d21da3d59309f47f Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5563 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
3e96796391
commit
d949f55737
@ -15,10 +15,8 @@ MALLOC_BLOCK_SIZE=512
|
||||
function build_nvmf_example_args() {
|
||||
if [ $SPDK_RUN_NON_ROOT -eq 1 ]; then
|
||||
NVMF_EXAMPLE=(sudo -u "$USER" "${NVMF_EXAMPLE[@]}")
|
||||
NVMF_EXAMPLE+=(-i "$NVMF_APP_SHM_ID" -g 10000)
|
||||
else
|
||||
NVMF_EXAMPLE+=(-i "$NVMF_APP_SHM_ID" -g 10000)
|
||||
fi
|
||||
NVMF_EXAMPLE+=(-i "$NVMF_APP_SHM_ID" -g 10000)
|
||||
}
|
||||
|
||||
build_nvmf_example_args
|
||||
|
Loading…
Reference in New Issue
Block a user