test: Sanitize log file
This patch removes the "sshpass -p intel" from the test logs. This trips up security analysis tools which flag it (falsely) as a leaked password. Change-Id: Id8e470561429821e320cdf185c43204938110c75 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/436891 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
fe34909871
commit
8c89954d4b
@ -12,7 +12,10 @@ if [ -z "${DEPENDENCY_DIR}" ]; then
|
||||
fi
|
||||
|
||||
function ssh_vm() {
|
||||
local shell_restore_x="$( [[ "$-" =~ x ]] && echo 'set -x' )"
|
||||
set +x
|
||||
sshpass -p "$password" ssh -o PubkeyAuthentication=no -o StrictHostKeyChecking=no -p 10022 root@localhost "$@"
|
||||
$shell_restore_x
|
||||
}
|
||||
|
||||
function monitor_cmd() {
|
||||
|
Loading…
Reference in New Issue
Block a user