Change-Id: I64e6f8643cda4e89b5b35b0d472fb548ec3320c8
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
test -n "${IP}" || die "Missing argument: ip"
test -n "${FILE}" || die "Missing argument: file"
COUNT=1
- while ! sudo sshpass -p 'tizen' scp -F ${TESTLAB_SCRIPTS}/conf/ssh_config \
+ while ! sudo timeout 60 sshpass -p 'tizen' scp -F ${TESTLAB_SCRIPTS}/conf/ssh_config \
"${FILE}" "root@${IP}:/tmp/smoke.sh"
do
echo "SSH connection to ${IP} failed: retrying" >&2
IP="$1"
test -n "${IP}" || die "Missing argument: ip"
COUNT=1
- while ! sudo sshpass -p 'tizen' ssh -F ${TESTLAB_SCRIPTS}/conf/ssh_config \
+ while ! sudo timeout 60 sshpass -p 'tizen' ssh -F ${TESTLAB_SCRIPTS}/conf/ssh_config \
"root@${IP}" sh "/tmp/smoke.sh" > sysctl.result
do
echo "SSH connection to ${IP} failed: retrying" >&2