From 5e3e0eb9461684ab089f7bd45de0b6a9ca15d0fb Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Fri, 22 Feb 2019 08:15:12 +1000 Subject: [PATCH] fix filesystem tests on OpenSUSE 15+ (#52716) --- test/integration/targets/filesystem/tasks/main.yml | 4 ++++ test/integration/targets/filesystem/tasks/setup.yml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/filesystem/tasks/main.yml b/test/integration/targets/filesystem/tasks/main.yml index fb6904d15c4..e352944ba08 100644 --- a/test/integration/targets/filesystem/tasks/main.yml +++ b/test/integration/targets/filesystem/tasks/main.yml @@ -37,4 +37,8 @@ # https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.23/v2.23-ReleaseNotes - 'not (item.0.key == "f2fs" and ansible_distribution == "Ubuntu" and ansible_distribution_version is version("14.04", "<="))' - 'not (item.1 == "overwrite_another_fs" and ansible_system == "FreeBSD")' + + # The xfsprogs package on newer versions of OpenSUSE (15+) require Python 3, we skip this on our Python 2 container + # OpenSUSE 42.3 Python2 and the other py3 containers are not affected so we will continue to run that + - 'not (item.0.key == "xfs" and ansible_os_family == "Suse" and ansible_python.version.major == 2 and ansible_distribution_major_version|int != 42)' loop: "{{ query('dict', tested_filesystems)|product(['create_fs', 'overwrite_another_fs'])|list }}" diff --git a/test/integration/targets/filesystem/tasks/setup.yml b/test/integration/targets/filesystem/tasks/setup.yml index 796e7d3ab0b..d8009a782d3 100644 --- a/test/integration/targets/filesystem/tasks/setup.yml +++ b/test/integration/targets/filesystem/tasks/setup.yml @@ -2,6 +2,8 @@ package: name: '{{ item }}' state: present + # xfsprogs on OpenSUSE requires Python 3, skip this for our newer Py2 OpenSUSE builds + when: not (item == 'xfsprogs' and ansible_os_family == 'Suse' and ansible_python.version.major == 2 and ansible_distribution_major_version|int != 42) with_items: - e2fsprogs - xfsprogs @@ -29,7 +31,7 @@ state: present when: ansible_os_family == 'Suse' with_items: - - python-xml + - python{{ ansible_python.version.major }}-xml - btrfsprogs - name: install ocfs2 (Debian)