Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] dummy-appliance=>collect-only #9773

Merged
merged 1 commit into from
Dec 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cfme/test_framework/appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def pytest_configure(config):
appliances = [
DummyAppliance.from_config(config) for _ in range(config.getoption('--num-dummies'))
]
if not config.option.collectonly:
config.option.collectonly = True

reporter.write_line('Retrieved Dummy Appliance', red=True)
elif stack.top:
appliances = [stack.top]
Expand Down
4 changes: 2 additions & 2 deletions cfme/utils/dockerbot/pytestbase/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@ set +e
if [ "$USE_SPROUT" = "yes" ];
then
log "invoking complete collectonly with dummy instance before test"
gate "collectonly.txt" "py.test --collectonly --dummy-appliance --dummy-appliance-version $SPROUT_GROUP --use-provider complete"
gate "collectonly.txt" "py.test --collect-only --dummy-appliance --dummy-appliance-version $SPROUT_GROUP --use-provider complete"

run_n_log "miq sprout checkout --populate-yaml --user-key sprout" &
sleep 5
do_or_die "python3 /check_provisioned.py >> $ARTIFACTOR_DIR/setup.txt" 5 60 "Sprout failed to provision appliance"
else
log "no sprout used"
log "invoking complete collectonly with given appliance instance before test"
gate "collectonly.txt" "py.test --collectonly --use-provider complete"
gate "collectonly.txt" "py.test --collect-only --use-provider complete"
fi

if [ "$GATE_RHEV" = "yes" ]
Expand Down