Skip to content

Commit 0549aca

Browse files
committed
Move full run configuration to main function
This improves code organization by keeping related configuration together and makes the flow more logical, plus less error-prone. Depends-on: #491 Signed-off-by: Ioannis Bonatakis <[email protected]>
1 parent 2ee6185 commit 0549aca

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

trigger-openqa_in_openqa

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ main() {
4040
# and use for submit requests
4141
if [[ $full_run ]]; then
4242
staging_project=$src_project
43+
flavor="dev-full"
44+
ARGS+=("FULL_OPENSUSE_TEST=1")
4345
else
4446
create_devel_openqa_snapshot || rc=$?
4547
if [[ $rc != 0 ]]; then
@@ -109,11 +111,6 @@ trigger() {
109111
if [ "$target_host" = "openqa.opensuse.org" ]; then
110112
ARGS=("OPENQA_HOST=http://openqa.opensuse.org")
111113
fi
112-
# in full run use only openqa_install+publish test
113-
if [ "$full_run" ]; then
114-
flavor="dev-full"
115-
ARGS+=("FULL_OPENSUSE_TEST=1")
116-
fi
117114

118115
# shellcheck disable=SC2086
119116
${client_prefix} ${openqa_cli} \

0 commit comments

Comments
 (0)