First attempt to support multiple components

This commit is contained in:
Petr Menšík 2023-08-25 12:43:02 +02:00
commit 928e44fe35
2 changed files with 5 additions and 11 deletions

View file

@ -5,9 +5,6 @@ description: |
contact: Petr Sklenar <psklenar@redhat.com>
test: ./runtest.sh
framework: beakerlib
recommend:
- bind
- bind-utils
duration: 15m
enabled: true
tag:
@ -18,14 +15,12 @@ tag:
link:
- relates: https://bugzilla.redhat.com/show_bug.cgi?id=1578128
adjust:
- recommend+:
- bind
- require+:
- bind-utils
environment+:
PACKAGE: bind
when: component == bind
- recommend+:
- bind9-next
- require+:
- bind9-next-utils
environment+:
PACKAGE: bind9-next

View file

@ -28,13 +28,12 @@
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="bind"
: ${PACKAGE:="bind"}
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlAssertRpm bind-utils
cat /etc/resolv.conf
rlAssertRpm $PACKAGE-utils
rlRun "cat /etc/resolv.conf"
rlPhaseEnd
rlPhaseStartTest