Parallelize make command for integration test runner

Also adds a new var, used by the prepare_tests role, to prevent it from
deleting the temp test directory at the start of each play to avoid any
potential race conditions
This commit is contained in:
James Cammarata 2015-12-21 14:09:02 -05:00
parent 1d18964daa
commit 0a6bc57fa5
2 changed files with 2 additions and 1 deletions

View file

@ -22,6 +22,7 @@
always_run: True
tags:
- prepare
when: clean_working_dir|default("yes")|bool
- name: create the test directory
file: name={{output_dir}} state=directory

View file

@ -9,7 +9,7 @@
shell: "cd ~/ansible && pwd"
register: results
- shell: "ls -la && . hacking/env-setup && cd test/integration && make {{ run_integration_make_target }}"
- shell: "ls -la && . hacking/env-setup && cd test/integration && TEST_FLAGS='-e clean_working_dir=no' make -j4 {{ run_integration_make_target }}"
args:
chdir: "{{ results.stdout }}"
async: 3600