diff --git a/roles/openqa/server/tasks/main.yml b/roles/openqa/server/tasks/main.yml index 89e6f2e1dc..b5304d6c3d 100644 --- a/roles/openqa/server/tasks/main.yml +++ b/roles/openqa/server/tasks/main.yml @@ -145,7 +145,7 @@ - name: Install various other required packages package: - name: ['python3-libselinux', 'git', 'json_diff', 'libselinux-utils', 'python3-libsemanage', + name: ['python3-libselinux', 'git', 'jq', 'libselinux-utils', 'python3-libsemanage', 'nfs-utils', 'perl(Class::DBI::Pg)', 'expect', 'libguestfs-tools-c', 'libguestfs-xfs', 'libvirt-daemon-config-network', 'libvirt-python3', 'python3-libguestfs', 'virt-install', 'withlock', 'genisoimage'] @@ -360,7 +360,7 @@ changed_when: "1 != 1" - name: Check if the tests changed in previous step - shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-new.json && json_diff /tmp/tmpl-old.json /tmp/tmpl-new.json" + shell: "/usr/share/openqa/script/dump_templates --json > /tmp/tmpl-new.json && diff <(jq -S . /tmp/tmpl-old.json) <(jq -S . /tmp/tmpl-new.json)" when: "(gittests is defined) and (gittests is changed)" register: testsdiff changed_when: "testsdiff.rc > 0"