Skip to content

Commit 8a0363d

Browse files
authored
Merge pull request #491 from d3flex/fix/use_separate_scenario
Parameterize the scenario_definitions for trigger-openqa_in_openqa
2 parents 4a78e6a + 507a330 commit 8a0363d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

trigger-openqa_in_openqa

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ arch="${arch:-"x86_64"}"
1818
machine="${machine:-"uefi"}"
1919
build_tag=${BUILD_TAG:-}
2020
client_prefix=${client_prefix:-}
21+
flavor=${flavor:-"dev"}
2122
full_run=${FULL:-}
2223
group_id="${group_id:-"openQA"}"
2324
osc=${osc:-retry -e -- osc}
2425
src_project=${src_project:-devel:openQA}
2526
staging_project=${staging_project:-${src_project}:testing}
2627
dst_project=${dst_project:-${src_project}:tested}
28+
scenario_definitions="${scenario_definitions:-"scenario-definitions.yaml"}"
2729

2830
# shellcheck source=/dev/null
2931
. "$(dirname "$0")"/_common
@@ -38,6 +40,7 @@ main() {
3840
# and use for submit requests
3941
if [[ $full_run ]]; then
4042
staging_project=$src_project
43+
flavor="dev-full" # Note: overrides any user-provided flavor
4144
else
4245
create_devel_openqa_snapshot || rc=$?
4346
if [[ $rc != 0 ]]; then
@@ -64,7 +67,7 @@ download_latest_published_tumbleweed_image() {
6467

6568
download_scenario() {
6669
rm -f /var/tmp/sd.yaml
67-
curl https://raw.githubusercontent.com/os-autoinst/os-autoinst-distri-openQA/master/scenario-definitions.yaml -o /var/tmp/sd.yaml
70+
curl https://raw.githubusercontent.com/os-autoinst/os-autoinst-distri-openQA/master/"${scenario_definitions}" -o /var/tmp/sd.yaml
6871
}
6972

7073
create_snapshots() {
@@ -107,17 +110,13 @@ trigger() {
107110
if [ "$target_host" = "openqa.opensuse.org" ]; then
108111
ARGS=("OPENQA_HOST=http://openqa.opensuse.org")
109112
fi
110-
# in full run use only openqa_install+publish test
111-
if [ "$full_run" ]; then
112-
ARGS+=('TEST=openqa_install+publish' "FULL_OPENSUSE_TEST=1")
113-
fi
114113

115114
# shellcheck disable=SC2086
116115
${client_prefix} ${openqa_cli} \
117116
schedule --host "${target_host_proto}://${target_host}" \
118117
--param-file SCENARIO_DEFINITIONS_YAML=/var/tmp/sd.yaml \
119118
VERSION=Tumbleweed \
120-
DISTRI=openqa FLAVOR=dev ARCH="${arch}" \
119+
DISTRI=openqa FLAVOR="${flavor}" ARCH="${arch}" \
121120
HDD_1="$qcow" BUILD="${build}" _GROUP="${group_id}" \
122121
OPENQA_OBS_PROJECT="$staging_project" \
123122
"${ARGS[@]}" \

0 commit comments

Comments
 (0)