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
pull/13625/head
James Cammarata 9 years ago
parent eb16e11253
commit 08b580decc

@ -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…
Cancel
Save