From 94cfd0732b6e8ae95d2def807dad302c92c03d42 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Thu, 17 Aug 2017 17:10:09 +0800 Subject: Fix compute CI job Change-Id: I86b2638b7e6ba2e8c4c6ba98b4cad8506d9d5c7c Signed-off-by: Yujun Zhang --- tests/ci/periodic.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/ci/periodic.sh b/tests/ci/periodic.sh index 4235cdee..3f5fe784 100755 --- a/tests/ci/periodic.sh +++ b/tests/ci/periodic.sh @@ -45,9 +45,9 @@ echo "Qtip: Pulling docker image: opnfv/qtip:${DOCKER_TAG}" docker pull opnfv/qtip:$DOCKER_TAG >/dev/null envs="--env-file $WORKSPACE/env_file" -docker_volume="-v /var/run/docker.sock:/var/run/docker.sock" +vols="-v /root/.ssh:/root/.ssh" -cmd="docker run -id ${envs} ${docker_volume} opnfv/qtip:${DOCKER_TAG} /bin/bash" +cmd="sudo docker run -id ${envs} ${vols} opnfv/qtip:${DOCKER_TAG} /bin/bash" echo "Qtip: Running docker command: ${cmd}" ${cmd} @@ -60,13 +60,6 @@ fi echo "The container ID is: ${container_id}" QTIP_REPO=/home/opnfv/repos/qtip -if [[ "$INSTALLER_TYPE" == "apex" ]];then - if [ -f /root/.ssh/id_rsa ]; then - sudo chmod 600 /root/.ssh/id_rsa - sudo docker cp /root/.ssh/id_rsa ${container_id}:/root/.ssh/ - fi -fi - case $TEST_SUITE in compute) docker exec -t ${container_id} bash -c "bash ${QTIP_REPO}/tests/ci/run_compute_qpi.sh" -- cgit 1.2.3-korg