Skip to content

Commit

Permalink
Merge pull request #3677 from luckyh/drop-passfd
Browse files Browse the repository at this point in the history
Drop passfd module
  • Loading branch information
YongxueHong authored Jun 21, 2023
2 parents 4c2834e + cc59fce commit eaaf51e
Show file tree
Hide file tree
Showing 16 changed files with 58 additions and 493 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
include LICENSE
include README.rst
include VERSION
include virttest/passfd.c
recursive-include avocado_vt/conf.d *
recursive-include virttest/test-providers.d *
recursive-include virttest/backends *
Expand Down
9 changes: 7 additions & 2 deletions avocado-plugins-vt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Xunit output, among others.

%package -n python3-%{name}
Summary: %{summary}
Requires: python3, python3-devel, python3-avocado >= 51.0, python3-aexpect
Requires: python3, python3-avocado >= 51.0, python3-aexpect
Requires: python3-netifaces
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{name}
Expand Down Expand Up @@ -104,10 +104,15 @@ Xunit output, among others.


%changelog
* Fri May 5 2023 Xu Han <[email protected]> - 100.1-2
- Removed python3-devel dependency
- Replaced passfd module with Python's built-in facility
- Removed simplejson dependency

* Thu Jan 19 2023 Cleber Rosa <[email protected]> - 100.1-1
- New release

* Thu Jul 20 2022 Xu Han <[email protected]> - 98.0-2
* Wed Jul 20 2022 Xu Han <[email protected]> - 98.0-2
- Removed python3-netaddr dependency

* Thu Jul 14 2022 Cleber Rosa <[email protected]> - 98.0-1
Expand Down
2 changes: 1 addition & 1 deletion contrib/containers/ci/centos-8.1.docker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM centos:8.1.1911
LABEL description "Centos 8 image used on integration checks, such as cirrus-ci"
RUN dnf -y install git xz tcpdump nc iproute iputils gcc python3-devel qemu-kvm qemu-img diffutils
RUN dnf -y install git xz tcpdump nc iproute iputils gcc qemu-kvm qemu-img diffutils
RUN dnf -y clean all
2 changes: 1 addition & 1 deletion contrib/containers/ci/fedora-35.docker
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM fedora:35
LABEL description "Fedora image used on integration checks, such as cirrus-ci"
RUN dnf -y install make python3-wheel python3-pip git xz tcpdump nc iproute iputils gcc python3-devel qemu-kvm qemu-img
RUN dnf -y install make python3-wheel python3-pip git xz tcpdump nc iproute iputils gcc qemu-kvm qemu-img
RUN dnf -y clean all
RUN mkdir -p /var/lib/avocado/data/avocado-vt/images/ /root/avocado/data/avocado-vt/images/
RUN curl -s https://avocado-project.org/data/assets/jeos/27/jeos-27-64.qcow2.xz | xz -d > /var/lib/avocado/data/avocado-vt/images/jeos-27-x86_64.qcow2
Expand Down
2 changes: 1 addition & 1 deletion contrib/containers/ci/rhel-8.docker
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.access.redhat.com/ubi8/ubi
LABEL description "RHEL 8 image used on integration checks, such as cirrus-ci"
RUN dnf -y install git xz nc iproute iputils gcc python3-devel
RUN dnf -y install git xz nc iproute iputils gcc
RUN dnf -y clean all
# Mock the additional requirements by touch&chmod, which is enough for --dry-run
RUN for PROG in tcpdump qemu-kvm qemu-img qemu-io; do touch /usr/local/bin/$PROG; chmod +x /usr/local/bin/$PROG; done
2 changes: 1 addition & 1 deletion docs/source/GetStartedGuide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Pip is useful when it comes to python dependencies, but it fails
in non-python ones. List of non-python requirements based on Fedora
package names is::

$ dnf install xz tcpdump iproute iputils gcc glibc-headers nc git python-devel
$ dnf install xz tcpdump iproute iputils gcc glibc-headers nc git

Then you can get Avocado-VT via pip::

Expand Down
9 changes: 0 additions & 9 deletions docs/source/InstallOptionalPackages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,6 @@ the basic purpose of building and cloning virtual machines.

$ yum install virt-install

To run all tests that involve filedescriptor passing, you need python-devel.
The reason is, this test suite is compatible with python 2.4, whereas a
std lib to pass filedescriptors was only introduced in python 3.2. Therefore,
we had to introduce a C python extension that is compiled on demand.

::

$ yum install python-devel


It's useful to also install:

Expand Down
1 change: 0 additions & 1 deletion docs/source/RegressionTestFarm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ with experience. Some notes:
gdb
iasl
libvirt
python-devel
ntpdate
gstreamer-plugins-good
gstreamer-python
Expand Down
1 change: 0 additions & 1 deletion selftests/doc/test_doc_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def test_build_docs(self):
'ovirtsdk module not present',
'Virsh executable not set or found on path',
'virt-admin executable not set or found on path',
"failed to import module u'virttest.passfd'",
"failed to import module u'virttest.step_editor'"]
failure_lines = []
doc_dir = os.path.join(basedir, 'docs')
Expand Down
1 change: 0 additions & 1 deletion spell.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ Netperf
nohup
numatune
ovmf
passfd
pc
postprocess
Postprocess
Expand Down
2 changes: 1 addition & 1 deletion virttest/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
'virt-manager',
'virt-xml']}

mandatory_headers = {'qemu': ['Python.h', 'types.h', 'socket.h', 'unistd.h'],
mandatory_headers = {'qemu': [],
'spice': [],
'libvirt': [],
'openvswitch': [],
Expand Down
270 changes: 0 additions & 270 deletions virttest/passfd.c

This file was deleted.

Loading

0 comments on commit eaaf51e

Please sign in to comment.