tests: Fix bridge-utils replacement

Typo in 'ip link add', 'type' argument was missing. Also update
'Requires:' line in Makefile.

Related: RHBZ#1954581
This commit is contained in:
Phil Sutter 2021-06-16 11:35:10 +02:00
parent 099ca6a1b5
commit 0f36a69aec
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ $(METADATA): Makefile
@echo "Type: Regression" >> $(METADATA) @echo "Type: Regression" >> $(METADATA)
@echo "TestTime: 5m" >> $(METADATA) @echo "TestTime: 5m" >> $(METADATA)
@echo "RunFor: iptables" >> $(METADATA) @echo "RunFor: iptables" >> $(METADATA)
@echo "Requires: iptables bridge-utils ipset" >> $(METADATA) @echo "Requires: iptables iproute ipset" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA) @echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2+" >> $(METADATA) @echo "License: GPLv2+" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA) @echo "Confidential: no" >> $(METADATA)

View File

@ -38,7 +38,7 @@ rlJournalStart
rlRun "pushd $TmpDir" rlRun "pushd $TmpDir"
rlRun "ip6tables-save > ip6tables.backup" rlRun "ip6tables-save > ip6tables.backup"
rlRun "iptables-save > iptables.backup" rlRun "iptables-save > iptables.backup"
rlRun "ip link add dev testbr" 0 "create bridge iface" rlRun "ip link add dev testbr type bridge" 0 "create bridge iface"
rlPhaseEnd rlPhaseEnd
rlPhaseStartTest rlPhaseStartTest