Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ dependencies = [
"pytest-dependency",
"requests",
"ipdb",
"paramiko",
"pyte",
]

[dependency-groups]
Expand All @@ -38,6 +40,7 @@ dev = [
"prek",
"autopep8",
"types-passlib",
"types-paramiko",
]

[tool.pyright]
Expand Down
2 changes: 2 additions & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ pytest>=9.1.1
pytest-dependency
requests
ipdb
paramiko
pyte
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ zizmor
prek
autopep8
types-passlib
types-paramiko
-r base.txt
25 changes: 25 additions & 0 deletions tests/install/test-pingpxe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /bin/bash
set -eE
set -o pipefail

ether_of () {
ifconfig "$1" | grep ether | sed 's/.*ether \\([^ ]*\\).*/\\1/'
}

# on installed system, avoid xapi-project/xen-api#5799
if ! [ -e /opt/xensource/installer ]; then
eth_mac=$(ether_of eth0)
br_mac=$(ether_of xenbr0)

# wait for bridge MAC to be fixed
test "$eth_mac" = "$br_mac"
fi

if [ "$(readlink /bin/ping)" = busybox ]; then
# XS before 7.0
PINGARGS=""
else
PINGARGS="-c1"
fi

ping $PINGARGS "$1"
Loading
Loading