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:
parent
1d18964daa
commit
0a6bc57fa5
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue