Skip to content

Commit 5e71e4f

Browse files
contrib/test: set env variables for integration tests
This is required to run a few integration tests with crun Signed-off-by: Sohan Kunkerkar <[email protected]>
1 parent 5fd3ed3 commit 5e71e4f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

contrib/test/ci/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
path: "{{ artifacts }}"
3535
state: directory
3636

37+
- name: set crun runtime if enabled
38+
set_fact:
39+
int_test_env: "{{ int_test_env | combine(crun_test_env) }}"
40+
when: "build_crun | bool"
41+
3742
- name: kata configuration
3843
block:
3944
- name: configure integration test suite for kata

contrib/test/ci/vars.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ int_test_env:
3333
STORAGE_OPTIONS: >
3434
--storage-driver=overlay
3535
36+
# Environment variables to set when executing integration tests with crun (mixed with int_test_env)
37+
crun_test_env:
38+
CONTAINER_DEFAULT_RUNTIME: "crun"
39+
CONTAINER_RUNTIMES: "crun::/run/crun:oci"
40+
3641
# for ssh ID generation
3742
ssh_user: "{{ lookup('env','USER') }}"
3843
ssh_location: "{{ lookup('env','HOME') }}/.ssh/id_rsa"

0 commit comments

Comments
 (0)