Skip to content

Commit

Permalink
tests: test_cmd via ssh-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvisa committed Jun 8, 2021
1 parent 0663a8b commit 08b5106
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tiup-cluster/script/cmd_subtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ function cmd_subtest() {
client="--native-ssh"
fi

# identify SSH via ssh-agent
eval $(ssh-agent) &> /dev/null
ssh-add /root/.ssh/id_rsa &> /dev/null

mv /root/.ssh/id_rsa{,.bak}
tiup-cluster $client check $topo -i ~/.ssh/id_rsa --enable-mem --enable-cpu --apply
mv /root/.ssh/id_rsa{.bak,}

check_result=`tiup-cluster $client --yes check $topo -i ~/.ssh/id_rsa`

Expand Down

0 comments on commit 08b5106

Please sign in to comment.