Skip to content

Commit

Permalink
Disable the remote spawner plugin RPM packages on all EL* distros
Browse files Browse the repository at this point in the history
There are some packit build failures related to the fact that:

1) centos-stream-8 and centos-stream-9 do not have python3-aexpect,
   so they're unable to build there
2) only epel-8 has python3-aexpect (not available on epel-9)

Until the situation is normalized and aexpect becomes available
on those, let's simply disable the remote spawner plugin RPMs for
all these distros.

Signed-off-by: Plamen Dimitrov <[email protected]>
  • Loading branch information
pevogam committed Dec 22, 2023
1 parent d9bd3c5 commit 58c242e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python-avocado.spec
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ BuildRequires: python3-docutils
BuildRequires: python3-lxml
BuildRequires: python3-psutil
BuildRequires: python3-setuptools
%if ! 0%{?rhel}
BuildRequires: python3-aexpect
%endif

%if ! 0%{?rhel}
%if ! 0%{?fedora} > 35
Expand Down Expand Up @@ -132,9 +134,11 @@ popd
pushd optional_plugins/result_upload
%py3_build
popd
%if ! 0%{?rhel}
pushd optional_plugins/spawner_remote
%py3_build
popd
%endif
rst2man man/avocado.rst man/avocado.1

%install
Expand Down Expand Up @@ -170,9 +174,11 @@ popd
pushd optional_plugins/result_upload
%py3_install
popd
%if ! 0%{?rhel}
pushd optional_plugins/spawner_remote
%py3_install
popd
%endif
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 man/avocado.1 %{buildroot}%{_mandir}/man1/avocado.1
mkdir -p %{buildroot}%{_pkgdocdir}
Expand Down Expand Up @@ -382,6 +388,7 @@ a dedicated sever.
%{python3_sitelib}/avocado_result_upload*
%{python3_sitelib}/avocado_framework_plugin_result_upload*

%if ! 0%{?rhel}
%package -n python3-avocado-plugins-spawner-remote
Summary: Avocado Plugin to spawn tests on a remote host
License: GPLv2+
Expand All @@ -393,6 +400,7 @@ This optional plugin is intended to spawn tests on a remote host.
%files -n python3-avocado-plugins-spawner-remote
%{python3_sitelib}/avocado_spawner_remote*
%{python3_sitelib}/avocado_framework_plugin_spawner_remote*
%endif

%package -n python3-avocado-examples
Summary: Avocado Test Framework Example Tests
Expand Down

0 comments on commit 58c242e

Please sign in to comment.