Skip to content

Commit

Permalink
test: skip quadlet tests on non-x86_64
Browse files Browse the repository at this point in the history
The images we currently use for quadlet testing are only available
on x86_64

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Aug 19, 2024
1 parent 85c187b commit 6f681c9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/tests_quadlet_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@
- FOO=/bin/busybox-extras
- BAZ=test
tasks:
- name: Test is only supported on x86_64
debug:
msg: >
This test is only supported on x86_64 because the test images used are only
available on that platform.
when: ansible_facts["architecture"] != "x86_64"

- name: End test
meta: end_play
when: ansible_facts["architecture"] != "x86_64"

- name: Run test
block:
- name: See if not pulling images fails
Expand Down
12 changes: 12 additions & 0 deletions tests/tests_quadlet_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
---
- name: Deploy the quadlet demo app
hosts: all
gather_facts: true
vars_files:
- vars/test_vars.yml
vars:
Expand All @@ -28,6 +29,17 @@
"/tmp/quadlet_demo":
mode: "0777"
tasks:
- name: Test is only supported on x86_64
debug:
msg: >
This test is only supported on x86_64 because the test images used are only
available on that platform.
when: ansible_facts["architecture"] != "x86_64"

- name: End test
meta: end_play
when: ansible_facts["architecture"] != "x86_64"

- name: Run tests
block:
- name: Generate certificates
Expand Down

0 comments on commit 6f681c9

Please sign in to comment.