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
eb16e11253
commit
08b580decc
2 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
always_run: True
|
always_run: True
|
||||||
tags:
|
tags:
|
||||||
- prepare
|
- prepare
|
||||||
|
when: clean_working_dir|default("yes")|bool
|
||||||
|
|
||||||
- name: create the test directory
|
- name: create the test directory
|
||||||
file: name={{output_dir}} state=directory
|
file: name={{output_dir}} state=directory
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
shell: "cd ~/ansible && pwd"
|
shell: "cd ~/ansible && pwd"
|
||||||
register: results
|
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:
|
args:
|
||||||
chdir: "{{ results.stdout }}"
|
chdir: "{{ results.stdout }}"
|
||||||
async: 3600
|
async: 3600
|
||||||
|
|
Loading…
Reference in a new issue