Skip to content

Commit

Permalink
ci: move edge fedora and centos-stream test to testing-farm
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi He committed Aug 19, 2024
1 parent 411711c commit ed1eb41
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
13 changes: 6 additions & 7 deletions test/cases/minimal-raw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,9 @@ case "${ID}-${VERSION_ID}" in
OS_VARIANT="centos-stream9"
BOOT_ARGS="uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
;;
"fedora-37")
OS_VARIANT="fedora37"
;;
"fedora-38")
"fedora-40")
OS_VARIANT="fedora-unknown"
;;
"fedora-39")
OS_VARIANT="fedora-rawhide"
;;
*)
redprint "unsupported distro: ${ID}-${VERSION_ID}"
exit 1;;
Expand Down Expand Up @@ -242,6 +236,11 @@ groups = []
name = "python3"
version = "*"
# Fix https://github.com/virt-s1/rhel-edge/issues/3531
[[packages]]
name = "python3-dnf"
version = "*"
[[packages]]
name = "wget"
version = "*"
Expand Down
36 changes: 18 additions & 18 deletions test/data/ansible/check_ostree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,24 +484,24 @@
command: journalctl -u ostree-remount
register: result_remount_jounalctl

- name: ostree-remount should remount /var and /sysroot
block:
- assert:
that:
- "'/sysroot' in result_remount_jounalctl.stdout"
- "'/var' in result_remount_jounalctl.stdout"
fail_msg: "/sysroot or /var are not remounted by ostree-remount"
success_msg: "/sysroot and /var are remount"
always:
- set_fact:
total_counter: "{{ total_counter | int + 1 }}"
rescue:
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
# Skipping playbook task in CS9 and RHEL 9 due to bug https://issues.redhat.com/browse/RHEL-25249
when: (edge_type == "none") and ((ansible_facts['distribution'] == 'Fedora' and ansible_facts['distribution_version'] is version('37', '<')) or
((ansible_facts['distribution'] == 'CentOS') and ansible_facts['distribution_version'] is version('9', '!=')) or (ansible_facts['distribution'] != 'RedHat'))
# Skipping playbook task in Fedora40, CS9 and RHEL 9 due to bug https://issues.redhat.com/browse/RHEL-25249
# - name: ostree-remount should remount /var and /sysroot
# block:
# - assert:
# that:
# - "'/sysroot' in result_remount_jounalctl.stdout"
# - "'/var' in result_remount_jounalctl.stdout"
# fail_msg: "/sysroot or /var are not remounted by ostree-remount"
# success_msg: "/sysroot and /var are remount"
# always:
# - set_fact:
# total_counter: "{{ total_counter | int + 1 }}"
# rescue:
# - name: failed count + 1
# set_fact:
# failed_counter: "{{ failed_counter | int + 1 }}"
# when: (edge_type == "none") and ((ansible_facts['distribution'] == 'Fedora' and ansible_facts['distribution_version'] is version('37', '<')) or
# ((ansible_facts['distribution'] == 'CentOS') and ansible_facts['distribution_version'] is version('9', '!=')) or (ansible_facts['distribution'] != 'RedHat'))

# case: check dmesg error and failed log
- name: check dmesg output
Expand Down
6 changes: 6 additions & 0 deletions tmt/plans/edge-test.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ provision:
summary: Test edge commit
environment+:
TEST_CASE: edge-commit
adjust+:
- when: distro == fedora
enabled: false

/edge-x86-installer:
summary: Test edge installer image
environment+:
TEST_CASE: edge-installer
adjust+:
- when: distro == fedora
enabled: false

/edge-x86-installer-fips:
summary: Test edge installer image with fips enabled
Expand Down

0 comments on commit ed1eb41

Please sign in to comment.