tests: Don't check example blueprints if we don't have to

ATM osbuild-composer doesn't ship example blueprints
This commit is contained in:
Alexander Todorov 2019-11-29 15:05:51 +02:00 committed by Brian C. Lane
parent 14a3c8d5a7
commit d68e01b7e1
1 changed files with 6 additions and 4 deletions

View File

@ -11,10 +11,12 @@ CLI="${CLI:-./src/bin/composer-cli}"
rlJournalStart
rlPhaseStartTest "blueprints list"
for bp in example-http-server example-development example-atlas; do
rlAssertEquals "blueprint list finds $bp" \
"`$CLI blueprints list | grep $bp`" "$bp"
done
if [ "$BACKEND" != "osbuild-composer" ]; then
for bp in example-http-server example-development example-atlas; do
rlAssertEquals "blueprint list finds $bp" \
"`$CLI blueprints list | grep $bp`" "$bp"
done
fi
rlPhaseEnd
rlPhaseStartTest "blueprints save"