functest: Move run-functest.sh execution out of ansible 17/52817/4
authorFatih Degirmenci <fdegir@gmail.com>
Wed, 28 Feb 2018 11:37:52 +0000 (11:37 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Wed, 28 Feb 2018 18:50:48 +0000 (18:50 +0000)
Ansible throws out the log at the end of task execution which
makes it hard to read. This change renames the role to prepare-functest
and then takes the script execution out which will be executed by
releng/jjb/xci/xci-run-functest.sh.

Change-Id: Icf399ce4f04357814ed7109cd11113a9decddc50
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
xci/playbooks/prepare-functest.yml [moved from xci/playbooks/run-functest.yml with 87% similarity]
xci/playbooks/roles/.gitignore
xci/playbooks/roles/prepare-functest/defaults/main.yml [moved from xci/playbooks/roles/run-functest/defaults/main.yml with 100% similarity]
xci/playbooks/roles/prepare-functest/tasks/main.yml [moved from xci/playbooks/roles/run-functest/tasks/main.yml with 94% similarity]
xci/playbooks/roles/prepare-functest/templates/env.j2 [moved from xci/playbooks/roles/run-functest/templates/env.j2 with 100% similarity]
xci/playbooks/roles/prepare-functest/templates/run-functest.sh.j2 [moved from xci/playbooks/roles/run-functest/templates/run-functest.sh.j2 with 100% similarity]

similarity index 87%
rename from xci/playbooks/run-functest.yml
rename to xci/playbooks/prepare-functest.yml
index 8b3b29a..6d5b01c 100644 (file)
@@ -13,8 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-- name: Prepare the environment for functest and run tests
+- name: Prepare the environment for functest
   hosts: opnfv
   user: root
   roles:
-    - role: "run-functest"
+    - role: "prepare-functest"
index 5e72578..e0b4777 100644 (file)
@@ -3,6 +3,6 @@
 !clone-repository/
 !configure-network/
 !configure-nfs/
-!run-functest/
+!prepare-functest/
 !remote-folders/
 !synchronize-time/
@@ -34,6 +34,3 @@
     state: present
   with_items:
     - wget
-
-- name: execute the script
-  shell: "/root/run-functest.sh"