From 66aaa54f25620f9d2f1eddca465709e3b6385707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= Date: Tue, 8 Aug 2023 15:43:19 +0200 Subject: [PATCH] Full `pip install` expected to fail on `Rawhide` Because of aio-libs/aiohttp/issues/7229 the full pip install test is expected to fail on `rawhide` until the issue is fixed. Move test code from the plan to a real test to enable the adjust rule. --- plans/install/pip.fmf | 26 ++++---------------------- tests/pip/install.fmf | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 22 deletions(-) create mode 100644 tests/pip/install.fmf diff --git a/plans/install/pip.fmf b/plans/install/pip.fmf index cfe0c0fff2..c5fabc4cf2 100644 --- a/plans/install/pip.fmf +++ b/plans/install/pip.fmf @@ -11,29 +11,11 @@ execute: /mini: summary+: " (mini)" discover: - tests: - - name: /install - test: /tmp/venv/bin/pip install . - require: - - gcc - - python3 - - python3-devel - - name: /help - test: /tmp/venv/bin/tmt --help + how: fmf + test: /tests/pip/install/mini /full: summary+: " (full)" discover: - tests: - - name: /install - test: /tmp/venv/bin/pip install .[all] - require: - - gcc - - python3 - - python3-devel - - libvirt-devel - - krb5-devel - - libpq-devel - - redhat-rpm-config - - name: /help - test: /tmp/venv/bin/tmt run --help + how: fmf + test: /tests/pip/install/full diff --git a/tests/pip/install.fmf b/tests/pip/install.fmf new file mode 100644 index 0000000000..c261ac64d7 --- /dev/null +++ b/tests/pip/install.fmf @@ -0,0 +1,27 @@ +path: "/" +framework: shell +require: + - gcc + - python3 + - python3-devel + +/mini: + summary: Ensure the minimal pip install works + test: | + /tmp/venv/bin/pip install . + /tmp/venv/bin/tmt --help + +/full: + summary: Ensure the full pip install works + require+: + - libvirt-devel + - krb5-devel + - libpq-devel + - redhat-rpm-config + test: | + /tmp/venv/bin/pip install .[all] + /tmp/venv/bin/tmt --help + adjust: + result: xfail + when: distro == fedora-rawhide + because: https://github.com/aio-libs/aiohttp/issues/7229