Enable SELinux in tests

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-10-17 15:24:19 -07:00
parent d7d2ce7ce2
commit b2ffa3fd4f

View file

@ -1,5 +1,8 @@
--- ---
- name: Set SELinux label for cri-o binary
command: chcon system_u:object_r:container_runtime_exec_t:s0 /usr/local/bin/crio
- name: enable and start CRI-O - name: enable and start CRI-O
systemd: systemd:
name: crio name: crio
@ -48,9 +51,6 @@
&> {{ artifacts }}/e2e.log &> {{ artifacts }}/e2e.log
# Fix vim syntax hilighting: " # Fix vim syntax hilighting: "
- name: disable SELinux
command: setenforce 0
- name: run e2e tests - name: run e2e tests
shell: "{{ e2e_shell_cmd | regex_replace('\\s+', ' ') }}" shell: "{{ e2e_shell_cmd | regex_replace('\\s+', ' ') }}"
args: args: