2018-05-07 19:41:48 +02:00
|
|
|
- block:
|
|
|
|
- name: run test case
|
|
|
|
include: "{{ test_case_to_run }}"
|
2019-06-26 22:58:19 +02:00
|
|
|
with_fileglob: tests/{{ testcase }}.yaml
|
2018-05-07 19:41:48 +02:00
|
|
|
loop_control:
|
|
|
|
loop_var: test_case_to_run
|
2019-06-26 22:58:19 +02:00
|
|
|
|
|
|
|
always:
|
|
|
|
- name: Get nuage-vsd-sim pid
|
|
|
|
shell: ps -A | grep '[n]'uage-vsd-sim | cut -d ' ' -f 1
|
|
|
|
register: vsim_pid
|
|
|
|
changed_when: no
|
|
|
|
ignore_errors: yes
|
|
|
|
|
|
|
|
- name: Stop-nuage-vsd-sim
|
|
|
|
command: kill {{ vsim_pid.stdout }}
|
|
|
|
changed_when: no
|
|
|
|
ignore_errors: yes
|
2018-05-03 20:36:09 +02:00
|
|
|
when: "ansible_python_version is version('2.7', '>=')"
|