Skip to content

Python3 compatibility #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 97 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
92c4403
Coverage: test_cpio: recursive add to archive
ydirson Jul 29, 2022
925e330
Coverage: test_cpio: exercise "extractall()" and check its output
ydirson Jul 20, 2022
d8fdc3d
Coverage: test_pci: new test from snippet in pci.py
ydirson Jul 29, 2022
02468d4
Coverage: new test_cmd from snippet in cmd.py
ydirson Jul 29, 2022
b1a5152
Coverage: new test_xmlunwrap from snippet in xmlunwrap.py
ydirson Jul 22, 2022
cc0121e
Coverage: new test_bootloader
ydirson Jul 25, 2022
7c609a4
xcp.bootloader: relax format strings for serial config
ydirson Jul 25, 2022
8333f8b
Coverage: new tests for xcp.accessor and xcp.repository
ydirson Jul 26, 2022
a0ebbfd
Prepare for futurize pass: fix "except" clause
ydirson Jul 28, 2022
a8606c8
Futurize: first pass, using -wn1
ydirson Aug 11, 2022
c25da36
coverage: new test_environ: parse a sample "xensource-inventory"
ydirson Jul 27, 2022
3d91e2e
Futurize fixes: drop now-duplicated test
ydirson Jul 28, 2022
c364a31
tests: remove unused imports, direct test execution
ydirson Jul 27, 2022
b066120
Futurize fixes: fix broken indentations
ydirson Jul 12, 2022
57a35b0
Coverage: test_biosdevname: add a test of all_devices_all_names()
ydirson Jul 27, 2022
ea40073
Futurize fixes: use "raise" not "raise_" when not reraising
ydirson Jul 12, 2022
1f19cc9
xcp.net.biosname: remove dead code
ydirson Jul 27, 2022
7746410
Un-futurize: replace future.utils.raise_ with six.raise_from
ydirson Jul 15, 2022
935f932
Coverage: test_cpio: add a test for CpioFileCompat
ydirson Jul 29, 2022
ce48634
Futurize fixes: remove now-unused imports
ydirson Jul 12, 2022
8244c49
Coverage: add a test for Bootloader.newDefault
ydirson Aug 9, 2022
869fc72
Futurize pylint complements: "print" continuation indentations, line …
ydirson Jul 15, 2022
056238e
cpiofile: flag known issue in apparently-unused code
ydirson Jul 20, 2022
1e12b2f
Migrate tests from StringIO.StringIO to io.StringIO
ydirson Jul 15, 2022
3cc0527
cpiofile: drop CpioFileCompat.write()
ydirson Jul 29, 2022
02e39ae
Switch integer division to py3-compatible "//"
ydirson Jul 15, 2022
2cf6d4c
xcp.accessor: upgrade urllib usage (futurize)
ydirson Jul 18, 2022
e546723
xcp.accessor: more urllib upgrading
ydirson Jul 18, 2022
1769f36
Use new-style classes even in python2 (2to3)
ydirson Jul 18, 2022
d6d104c
futurize: deal with xrange()
ydirson Jul 18, 2022
1c15aa3
python3: remove casts from "int" to "long"
ydirson Jul 18, 2022
d8cac48
python3: change float cast from "long" to "int"
ydirson Jul 18, 2022
4285f22
2to3: rename "next" methods to "__next__", use six.Iterator for porta…
ydirson Jul 18, 2022
5a4947e
futurize: convert "iteritems()" to "items()", all negligible perf impact
ydirson Jul 18, 2022
fff9b31
Apply fixes from `2to3 -f map` that are useful even when suboptimal
ydirson Jul 18, 2022
acc51cd
test_cpio: always use hashlib, came with python 2.5
ydirson Jul 18, 2022
07675d3
Apply all fixes from `2to3 -f filter` that are useful even when subop…
ydirson Jul 18, 2022
aee19c8
test_cpio: use context manager to avoid forgetting to close some files
ydirson Jul 18, 2022
de9b4bf
Futurize fixes: use generator comprehensions when list ones are not n…
ydirson Jul 18, 2022
e7a3c3f
test_cpio: use context manager for other "open" calls for consistency
ydirson Jul 18, 2022
bdc3617
Futurize cleanups: use list comprehension not `list(map())` or `list(…
ydirson Jul 18, 2022
a24f84e
tests: avoid useless try/except
ydirson Jul 27, 2022
0709e18
Futurize cleanups: xcp.net.ifrename.logic: simplify nested comprehens…
ydirson Jul 18, 2022
2b8f87c
tests: use TestCase.assertRaises as context manager
ydirson Jul 27, 2022
8fee05a
Futurize cleanups: line-wrapping fixes
ydirson Jul 18, 2022
ce34f68
Mark bytes literals and streams as such
ydirson Jul 18, 2022
de9c41e
Futurize cleanups: cleanup duplicated imports
ydirson Jul 18, 2022
bfd5467
test_cpio: add some docstrings
ydirson Jul 19, 2022
f63f4a1
python3: use six.string_types not version-dependant types
ydirson Jul 18, 2022
1311528
Futurize pylint complements: xcp.accessor: bring consistency to "open…
ydirson Jul 20, 2022
1e1b9a4
test_cpio: generate reproducible archives
ydirson Jul 19, 2022
4424275
python3: use "six.ensure_binary" and "six.ensure_text" for str/bytes …
ydirson Jul 18, 2022
c2902d7
Futurize pylint complements: disable warnings triggered by "import fu…
ydirson Jul 20, 2022
7e06575
test_cpio: avoid overwriting original archives with "archiveCreate()"
ydirson Jul 19, 2022
05ac34f
Remove direct call's to file's constructor and replace them with call…
brettcannon May 25, 2007
bbd7cbe
Futurize pylint complements: test_cpio: mark unused import as expected
ydirson Jul 20, 2022
b726df7
test_cpio: improve test readability
ydirson Jul 19, 2022
7ad1bdd
python3: xcp.net.mac: use six.python_2_unicode_compatible for stringi…
ydirson Jul 18, 2022
fe914ab
Futurize pylint complements: xcp.accessor: avoid redefining "file" bu…
ydirson Jul 20, 2022
7ef098c
test_cpio: expect different xz flags depending on python version
ydirson Jul 19, 2022
6bda8a2
xcp.net.ifrename.logic: use "logger.warning", "logger.warn" is deprec…
ydirson Jul 18, 2022
fe0c121
Futurize pylint complements: Avoid useless ".keys()" when enumerating…
ydirson Jul 20, 2022
d24816e
test_cpio: check xz magic, not just the flags
ydirson Jul 19, 2022
4bffe8e
python3: use raw strings for regexps, fixes insufficient quoting
ydirson Jul 18, 2022
9c08b5d
Futurize pylint complements: xcp.repository: honor singleton-comparis…
ydirson Jul 20, 2022
c16e90c
cpio: fix check for xz file magic ignoring the 6th byte
ydirson Jul 19, 2022
686ff2d
test_dom0: mock "open()" in a python3-compatible way
ydirson Jul 19, 2022
4b92d6a
Futurize pylint complements: xcp.repository: locally disable too-few-…
ydirson Jul 20, 2022
08abd00
test_cpio: remove unused import (pylint on python3)
ydirson Aug 8, 2022
a5853cd
ifrename: don't rely on dict ordering in tests
ydirson Jul 19, 2022
95bc54e
Futurize pylint complements: "print" continuation indentations, line …
ydirson Jul 15, 2022
50028ec
cpiofile: revert unnecessary deviations from original tarfile.py
ydirson Aug 10, 2022
889639a
test_cpio: ensure paths are handled as text
ydirson Jul 20, 2022
c21cbd7
Futurize pylint complements: whitespace in expressions
ydirson Jul 15, 2022
e1627c3
cpiofile: revert overeager tar->cpio substitution on "target"
ydirson Aug 10, 2022
28dafbf
cpiofile: migrate last "list.sort()" call still using a "cmp" argument
ydirson Jul 26, 2022
753b6dd
xcp.cpiofile: fix bad indentation
ydirson Aug 8, 2022
f1236c4
cpiofile: catch use of non-binary streams early
ydirson Aug 31, 2022
d43e44c
WIP python3: fix xmlunwrap and its test to align with the use of bytes
ydirson Jul 25, 2022
edc16d6
Futurize pylint complements: whitespace in expressions
ydirson Jul 15, 2022
76459c6
xcp: get rid of useless blackslash line continuations
ydirson Aug 8, 2022
72b8c1b
cpiofile: hack support for text IO to archive member
ydirson Aug 31, 2022
7d0a2ba
xcp.repository: switch from md5 to hashlib.md5
ydirson Jul 26, 2022
ff1354a
Merge remote-tracking branch 'yd/improve-test-coverage'
ydirson Sep 21, 2022
f974066
Merge branch 'futurize-pass-1'
ydirson Sep 21, 2022
b409acb
Merge branch 'futurize-pass-2'
ydirson Sep 21, 2022
723dfe0
Merge branch 'testcpio-py3'
ydirson Sep 21, 2022
4ed924a
WIP xcp.repository: switch from ConfigParser to configparser
ydirson Jul 26, 2022
ff2c1b0
test: use parametrized tests
ydirson Sep 26, 2022
961bb79
WIP test_accessor: check for I/O on binary files
ydirson Sep 26, 2022
72ac6b4
WIP test_accessor: write into copy file as binary
ydirson Sep 26, 2022
d334f67
Pylint complements: honor len-as-condition convention
ydirson Jul 20, 2022
a498dd7
Pylint complements: whitespace in expressions
ydirson Jul 15, 2022
23ae533
Pylint complements: test_ifrename_logic: disable "no-member" warning
ydirson Aug 8, 2022
f180754
Pylint complements: avoid no-else-raise "refactor" issues
ydirson Aug 8, 2022
c41e019
CI: also run tests with python3
ydirson Jul 26, 2022
9021a85
Merge branch 'testsuite-driven-py3'
ydirson Sep 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,54 @@ name: Unit tests
on: [push, pull_request]

jobs:
test_py2:
runs-on: ubuntu-20.04
test:
strategy:
matrix:
include:
- pyversion: '2.7'
os: ubuntu-20.04
- pyversion: '3'
os: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 2.7
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v2
with:
python-version: '2.7'
python-version: ${{ matrix.pyversion }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
# FIXME: branding.py still has no permanent home
curl https://gist.github.com/ydirson/3c36a7e19d762cc529a6c82340894ccc/raw/5ca39f621b1feab813e171f535c1aad1bd483f1d/branding.py -O -L
pip install pyliblzma
pip install -e .
command -v xz

- name: Test
run: |
pytest --cov -rP
coverage xml
coverage html
coverage html -d htmlcov-tests --include="tests/*"
diff-cover --html-report coverage-diff.html coverage.xml
coverage html -d htmlcov-${{ matrix.pyversion }}
coverage html -d htmlcov-tests-${{ matrix.pyversion }} --include="tests/*"
diff-cover --compare-branch=origin/master --html-report coverage-diff-${{ matrix.pyversion }}.html coverage.xml

- name: Pylint
run: |
pylint --version
pylint --exit-zero xcp/ tests/ setup.py
pylint --exit-zero --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" xcp/ tests/ setup.py > pylint.txt
diff-quality --violations=pylint --html-report pylint-diff.html pylint.txt
diff-quality --compare-branch=origin/master --violations=pylint --html-report pylint-diff-${{ matrix.pyversion }}.html pylint.txt

- uses: actions/upload-artifact@v3
with:
name: Coverage and pylint reports
path: |
coverage-diff.html
pylint-diff.html
htmlcov
htmlcov-tests
coverage-diff-${{ matrix.pyversion }}.html
pylint-diff-${{ matrix.pyversion }}.html
htmlcov-${{ matrix.pyversion }}
htmlcov-tests-${{ matrix.pyversion }}
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ diff_cover
mock
pytest
pytest-cov
parameterized
# dependencies also in setup.py until they can be used
six
future

# python-2.7 only
configparser ; python_version < "3.0"
pyliblzma ; python_version < "3.0"
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@
],
requires=[
'branding',
'six',
'future',
],
)
68 changes: 68 additions & 0 deletions tests/data/all_ethN.biosdevname
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
BIOS device: eth0
Kernel name: eth0
Permanent MAC: EC:F4:BB:C3:AF:A8
Assigned MAC : EC:F4:BB:C3:AF:A8
Driver: ixgbe
Driver version: 5.9.4
Firmware version: 0x8000095c, 19.5.12
Bus Info: 0000:01:00.0
PCI name : 0000:01:00.0
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 1
SMBIOS Label: Integrated NIC 1
sysfs Label: NIC1
Embedded Index: 1

BIOS device: eth1
Kernel name: eth1
Permanent MAC: EC:F4:BB:C3:AF:AA
Assigned MAC : EC:F4:BB:C3:AF:AA
Driver: ixgbe
Driver version: 5.9.4
Firmware version: 0x8000095c, 19.5.12
Bus Info: 0000:01:00.1
PCI name : 0000:01:00.1
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 2
SMBIOS Label: Integrated NIC 2
sysfs Label: NIC2
Embedded Index: 2

BIOS device: eth2
Kernel name: eth2
Permanent MAC: EC:F4:BB:C3:AF:AC
Assigned MAC : EC:F4:BB:C3:AF:AC
Driver: igb
Driver version: 5.3.5.20
Firmware version: 1.67, 0x80000fab, 19.5.12
Bus Info: 0000:07:00.0
PCI name : 0000:07:00.0
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 3
SMBIOS Label: Integrated NIC 3
sysfs Label: NIC3
VPD Port: 3
VPD Index: 1
VPD PCI master: 0000:07:00.0

BIOS device: eth3
Kernel name: eth3
Permanent MAC: EC:F4:BB:C3:AF:AD
Assigned MAC : EC:F4:BB:C3:AF:AD
Driver: igb
Driver version: 5.3.5.20
Firmware version: 1.67, 0x80000fab, 19.5.12
Bus Info: 0000:07:00.1
PCI name : 0000:07:00.1
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 4
SMBIOS Label: Integrated NIC 4
sysfs Label: NIC4
VPD Port: 4
VPD Index: 1
VPD PCI master: 0000:07:00.1

5 changes: 5 additions & 0 deletions tests/data/grub-linux.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set default=0
menuentry 'linux' {
linux /boot/vmlinuz-1 ro
initrd /boot/initrd.img-1
}
35 changes: 35 additions & 0 deletions tests/data/grub.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
serial --unit=0 --speed=115200
terminal_input serial console
terminal_output serial console
set default=0
set timeout=5
menuentry 'XCP-ng' {
search --label --set root root-vgdorj
multiboot2 /boot/xen.gz dom0_mem=7584M,max:7584M watchdog ucode=scan dom0_max_vcpus=1-16 crashkernel=256M,below=4G console=vga vga=mode-0x0311
module2 /boot/vmlinuz-4.19-xen root=LABEL=root-vgdorj ro nolvm hpet=disable console=hvc0 console=tty0 quiet vga=785 splash plymouth.ignore-serial-consoles
module2 /boot/initrd-4.19-xen.img
}
menuentry 'XCP-ng (Serial)' {
search --label --set root root-vgdorj
multiboot2 /boot/xen.gz com1=115200,8n1 console=com1,vga dom0_mem=7584M,max:7584M watchdog ucode=scan dom0_max_vcpus=1-16 crashkernel=256M,below=4G
module2 /boot/vmlinuz-4.19-xen root=LABEL=root-vgdorj ro nolvm hpet=disable console=tty0 console=hvc0
module2 /boot/initrd-4.19-xen.img
}
menuentry 'XCP-ng in Safe Mode' {
search --label --set root root-vgdorj
multiboot2 /boot/xen.gz nosmp noreboot noirqbalance no-mce no-bootscrub no-numa no-hap no-mmcfg max_cstate=0 nmi=ignore allow_unsafe dom0_mem=7584M,max:7584M com1=115200,8n1 console=com1,vga
module2 /boot/vmlinuz-4.19-xen earlyprintk=xen root=LABEL=root-vgdorj ro nolvm hpet=disable console=tty0 console=hvc0
module2 /boot/initrd-4.19-xen.img
}
menuentry 'XCP-ng (Xen 4.13.1 / Linux 4.19.0+1)' {
search --label --set root root-vgdorj
multiboot2 /boot/xen-fallback.gz dom0_mem=7584M,max:7584M watchdog ucode=scan dom0_max_vcpus=1-16 crashkernel=256M,below=4G
module2 /boot/vmlinuz-fallback root=LABEL=root-vgdorj ro nolvm hpet=disable console=hvc0 console=tty0
module2 /boot/initrd-fallback.img
}
menuentry 'XCP-ng (Serial, Xen 4.13.1 / Linux 4.19.0+1)' {
search --label --set root root-vgdorj
multiboot2 /boot/xen-fallback.gz com1=115200,8n1 console=com1,vga dom0_mem=7584M,max:7584M watchdog ucode=scan dom0_max_vcpus=1-16 crashkernel=256M,below=4G
module2 /boot/vmlinuz-fallback root=LABEL=root-vgdorj ro nolvm hpet=disable console=tty0 console=hvc0
module2 /boot/initrd-fallback.img
}
23 changes: 23 additions & 0 deletions tests/data/inventory/etc/xensource-inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
PRIMARY_DISK='/dev/disk/by-id/scsi-123456789012345678901234567899012'
PRODUCT_VERSION='8.2.1'
DOM0_VCPUS='16'
CONTROL_DOMAIN_UUID='3b1dccee-9da4-49c6-8250-e3725e0e4b2d'
DOM0_MEM='7584'
COMPANY_NAME_SHORT='Open Source'
MANAGEMENT_ADDRESS_TYPE='IPv4'
PARTITION_LAYOUT='ROOT,BACKUP,LOG,BOOT,SWAP,SR'
PRODUCT_VERSION_TEXT='8.2'
PRODUCT_BRAND='XCP-ng'
INSTALLATION_UUID='b8b63475-d28c-44d4-9d1e-c38298ad3a0d'
PRODUCT_VERSION_TEXT_SHORT='8.2'
BRAND_CONSOLE='XCP-ng Center'
PRODUCT_NAME='xenenterprise'
MANAGEMENT_INTERFACE='xapi1'
COMPANY_PRODUCT_BRAND='XCP-ng'
PLATFORM_VERSION='3.2.1'
BUILD_NUMBER='release/yangtze/master/58'
PLATFORM_NAME='XCP'
BRAND_CONSOLE_URL='https://xcp-ng.org'
BACKUP_PARTITION='/dev/disk/by-id/scsi-123456789012345678901234567899012-part2'
INSTALLATION_DATE='2021-08-03 16:39:24.077945'
COMPANY_NAME='Open Source'
36 changes: 36 additions & 0 deletions tests/data/lspci-mn
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
00:00.0 "0600" "1022" "1630" "1022" "1630"
00:00.2 "0806" "1022" "1631" "1022" "1631"
00:01.0 "0600" "1022" "1632" "" ""
00:01.1 "0604" "1022" "1633" "" ""
00:02.0 "0600" "1022" "1632" "" ""
00:02.1 "0604" "1022" "1634" "" ""
00:02.2 "0604" "1022" "1634" "" ""
00:02.3 "0604" "1022" "1634" "" ""
00:08.0 "0600" "1022" "1632" "" ""
00:08.1 "0604" "1022" "1635" "" ""
00:08.2 "0604" "1022" "1635" "" ""
00:14.0 "0c05" "1022" "790b" -r51 "1462" "12ac"
00:14.3 "0601" "1022" "790e" -r51 "1462" "12ac"
00:18.0 "0600" "1022" "1448" "" ""
00:18.1 "0600" "1022" "1449" "" ""
00:18.2 "0600" "1022" "144a" "" ""
00:18.3 "0600" "1022" "144b" "" ""
00:18.4 "0600" "1022" "144c" "" ""
00:18.5 "0600" "1022" "144d" "" ""
00:18.6 "0600" "1022" "144e" "" ""
00:18.7 "0600" "1022" "144f" "" ""
01:00.0 "0604" "1002" "1478" -rc1 "" ""
02:00.0 "0604" "1002" "1479" "" ""
03:00.0 "0380" "1002" "7340" -rc1 "1462" "12ac"
03:00.1 "0403" "1002" "ab38" "1462" "12ac"
04:00.0 "0280" "8086" "2723" -r1a "8086" "0084"
05:00.0 "0200" "10ec" "8168" -r15 "1462" "12ac"
06:00.0 "0108" "144d" "a808" -p02 "144d" "a801"
07:00.0 "0300" "1002" "1636" -rc6 "1462" "12ac"
07:00.2 "1080" "1022" "15df" "1022" "15df"
07:00.3 "0c03" "1022" "1639" -p30 "1462" "12ac"
07:00.4 "0c03" "1022" "1639" -p30 "1462" "12ac"
07:00.5 "0480" "1022" "15e2" -r01 "1462" "12ac"
07:00.6 "0403" "1022" "15e3" "1462" "12ac"
08:00.0 "0106" "1022" "7901" -r81 -p01 "1462" "12ac"
08:00.1 "0106" "1022" "7901" -r81 -p01 "1462" "12ac"
29 changes: 29 additions & 0 deletions tests/data/pci.ids
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Excerpt from /usr/share/hwdata/pci.ids

# Vendors, devices and subsystems. Please keep sorted.

# Syntax:
# vendor vendor_name
# device device_name <-- single tab
# subvendor subdevice subsystem_name <-- two tabs

1002 Advanced Micro Devices, Inc. [AMD/ATI]
1314 Wrestler HDMI Audio
174b 1001 PURE Fusion Mini
1636 Renoir
7340 Navi 14 [Radeon RX 5500/5500M / Pro 5500M]

# List of known device classes, subclasses and programming interfaces

# Syntax:
# C class class_name
# subclass subclass_name <-- single tab
# prog-if prog-if_name <-- two tabs

C 03 Display controller
00 VGA compatible controller
00 VGA controller
01 8514 controller
01 XGA compatible controller
02 3D controller
80 Display controller
68 changes: 68 additions & 0 deletions tests/data/physical.biosdevname
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
BIOS device: em1
Kernel name: eth0
Permanent MAC: EC:F4:BB:C3:AF:A8
Assigned MAC : EC:F4:BB:C3:AF:A8
Driver: ixgbe
Driver version: 5.9.4
Firmware version: 0x8000095c, 19.5.12
Bus Info: 0000:01:00.0
PCI name : 0000:01:00.0
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 1
SMBIOS Label: Integrated NIC 1
sysfs Label: NIC1
Embedded Index: 1

BIOS device: em2
Kernel name: eth1
Permanent MAC: EC:F4:BB:C3:AF:AA
Assigned MAC : EC:F4:BB:C3:AF:AA
Driver: ixgbe
Driver version: 5.9.4
Firmware version: 0x8000095c, 19.5.12
Bus Info: 0000:01:00.1
PCI name : 0000:01:00.1
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 2
SMBIOS Label: Integrated NIC 2
sysfs Label: NIC2
Embedded Index: 2

BIOS device: em3_1
Kernel name: eth2
Permanent MAC: EC:F4:BB:C3:AF:AC
Assigned MAC : EC:F4:BB:C3:AF:AC
Driver: igb
Driver version: 5.3.5.20
Firmware version: 1.67, 0x80000fab, 19.5.12
Bus Info: 0000:07:00.0
PCI name : 0000:07:00.0
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 3
SMBIOS Label: Integrated NIC 3
sysfs Label: NIC3
VPD Port: 3
VPD Index: 1
VPD PCI master: 0000:07:00.0

BIOS device: em4_1
Kernel name: eth3
Permanent MAC: EC:F4:BB:C3:AF:AD
Assigned MAC : EC:F4:BB:C3:AF:AD
Driver: igb
Driver version: 5.3.5.20
Firmware version: 1.67, 0x80000fab, 19.5.12
Bus Info: 0000:07:00.1
PCI name : 0000:07:00.1
PCI Slot : embedded
SMBIOS Device Type: Ethernet
SMBIOS Instance: 4
SMBIOS Label: Integrated NIC 4
sysfs Label: NIC4
VPD Port: 4
VPD Index: 1
VPD PCI master: 0000:07:00.1

34 changes: 34 additions & 0 deletions tests/data/repo/.treeinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[platform]
name = XCP
version = 3.2.1

[branding]
name = XCP-ng
version = 8.2.1

[build]
number = release/yangtze/master/58

[keys]
key1 = RPM-GPG-KEY-CH-8
key2 = RPM-GPG-KEY-CH-8-LCM
key3 = RPM-GPG-KEY-Platform-V1

[general]
name = XCP-ng-8.2.1
family = XCP-ng
timestamp = 1645700813.00
variant =
version = 8.2.1
packagedir =
arch = x86_64

[images-x86_64]
kernel = boot/pxelinux/mboot.c32
initrd = boot/vmlinuz
boot.iso = boot/xen.gz

[images-xen]
kernel = boot/pxelinux/mboot.c32
initrd = boot/vmlinuz

Empty file added tests/data/repo/XS-PACKAGES
Empty file.
Loading