diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-01-24 16:08:57 +0100 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-01-24 16:08:57 +0100 |
commit | 9f585b8d5eb8bffcb2040ef97ec8300c1af10d1f (patch) | |
tree | 153dde10ac507935f34aebda22bf28e65323a07a /xci/playbooks/roles/run-functest/tasks/main.yml | |
parent | ecdf92e8468656c8a4660498b75d30d914577f9d (diff) |
xci: Integrate functest
This change integrates functest in most easiest and messy way to
get it up and running to bring functest into CI. The reason for
this is that there are strange failures during functest healthcheck
and it is important to look into those rather than beautifying how
functest is integrated at this phase.
Change-Id: I42e993be4aa15da022fa1e0069338447780f177e
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Diffstat (limited to 'xci/playbooks/roles/run-functest/tasks/main.yml')
-rw-r--r-- | xci/playbooks/roles/run-functest/tasks/main.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xci/playbooks/roles/run-functest/tasks/main.yml b/xci/playbooks/roles/run-functest/tasks/main.yml new file mode 100644 index 00000000..8ca2b7ba --- /dev/null +++ b/xci/playbooks/roles/run-functest/tasks/main.yml @@ -0,0 +1,32 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2017 SUSE Linux GmbH +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +- name: check if the gateway was already set + shell: "ip a | grep {{ gateway_ip }}" + register: gateway_ip_result + ignore_errors: True + +- name: add public network gateway + command: "ip addr add {{ gateway_ip_mask }} brd {{ broadcast_ip }} dev {{ gateway_interface }}" + when: gateway_ip_result|failed + +- name: prepare environment file for functest + template: + src: env.j2 + dest: /root/env + mode: 0755 + +- name: prepare the script to create networks and run functest + template: + src: run-functest.sh.j2 + dest: /root/run-functest.sh + mode: 0755 + +- name: execute the script + shell: "/root/run-functest.sh" |