tests: Drop dependency on non-existing bridge-utils

Replace the calls by equivalent ones to 'ip'.

Related: RHBZ#1954581
This commit is contained in:
Phil Sutter 2021-06-14 13:36:11 +02:00
parent 18fd73d348
commit 099ca6a1b5
2 changed files with 2 additions and 3 deletions

View File

@ -38,7 +38,7 @@ rlJournalStart
rlRun "pushd $TmpDir"
rlRun "ip6tables-save > ip6tables.backup"
rlRun "iptables-save > iptables.backup"
rlRun "brctl addbr testbr" 0 "create bridge iface"
rlRun "ip link add dev testbr" 0 "create bridge iface"
rlPhaseEnd
rlPhaseStartTest
@ -75,7 +75,7 @@ rlJournalStart
rlRun "ip6tables-restore < ip6tables.backup"
rlRun "iptables-restore < iptables.backup"
rlRun "ip link set down dev testbr"
rlRun "brctl delbr testbr" 0 "remove bridge iface"
rlRun "ip link del testbr" 0 "remove bridge iface"
rlRun "ipset destroy ipsetv6" 0 "remove ipv6 ipset"
rlRun "ipset destroy ipsetv4" 0 "remove ipv4 ipset"
rlRun "popd"

View File

@ -10,7 +10,6 @@
- iptables-services # multiple tests need iptables/ip6tables config files
- initscripts # multiple tests need system command
- libcgroup-tools # backport-iptables-add-libxt-cgroup-frontend needs cg* commands
- bridge-utils # ip6tables-do-not-accept-dst-or-src-direction-on-ip6sets needs brctl command
- ipset # multiple tests need ipset command
- strace # xtables-tools-locking-vulnerable-to-local-DoS needs strace command
- policycoreutils # initscript-sanity needs restorecon command