tests/check-against-debootstrap-dist: since iputils-ping 20240905 there are no extended attributes anymore

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-10-11 18:38:04 +02:00
parent c82fc7e261
commit 5055b1b44c
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -109,20 +109,24 @@ if [ "{{ VARIANT }}" = "-" ]; then
rm /tmp/debian-{{ DIST }}-debootstrap/var/lib/systemd/catalog/database rm /tmp/debian-{{ DIST }}-debootstrap/var/lib/systemd/catalog/database
rm /tmp/debian-{{ DIST }}-mm/var/lib/systemd/catalog/database rm /tmp/debian-{{ DIST }}-mm/var/lib/systemd/catalog/database
cap=$(chroot /tmp/debian-{{ DIST }}-debootstrap /sbin/getcap /bin/ping) case {{ DIST }} in oldstable | stable | testing)
expected="/bin/ping cap_net_raw=ep" cap=$(chroot /tmp/debian-{{ DIST }}-debootstrap /sbin/getcap /bin/ping)
if [ "$cap" != "$expected" ]; then expected="/bin/ping cap_net_raw=ep"
echo "expected bin/ping to have capabilities $expected" >&2 if [ "$cap" != "$expected" ]; then
echo "but debootstrap produced: $cap" >&2 echo "expected bin/ping to have capabilities $expected" >&2
exit 1 echo "but debootstrap produced: $cap" >&2
fi exit 1
cap=$(chroot /tmp/debian-{{ DIST }}-mm /sbin/getcap /bin/ping) fi
if [ "$cap" != "$expected" ]; then cap=$(chroot /tmp/debian-{{ DIST }}-mm /sbin/getcap /bin/ping)
echo "expected bin/ping to have capabilities $expected" >&2 if [ "$cap" != "$expected" ]; then
echo "but mmdebstrap produced: $cap" >&2 echo "expected bin/ping to have capabilities $expected" >&2
exit 1 echo "but mmdebstrap produced: $cap" >&2
fi exit 1
fi
;;
esac
fi fi
rm /tmp/debian-{{ DIST }}-mm/var/cache/apt/archives/lock rm /tmp/debian-{{ DIST }}-mm/var/cache/apt/archives/lock
rm /tmp/debian-{{ DIST }}-mm/var/lib/apt/extended_states rm /tmp/debian-{{ DIST }}-mm/var/lib/apt/extended_states
rm /tmp/debian-{{ DIST }}-mm/var/lib/apt/lists/lock rm /tmp/debian-{{ DIST }}-mm/var/lib/apt/lists/lock