From c618ce131236872a78f37bf513b602ede22908f2 Mon Sep 17 00:00:00 2001 From: Marius Kittler Date: Thu, 14 Nov 2024 19:10:12 +0100 Subject: [PATCH] Allow overriding the project on OBS to install openQA from This allows to test packages from a fixed snapshot more easily (without overriding the whole `OPENQA_REPO_URL`). Related ticket: https://progress.opensuse.org/issues/167395 --- tests/install/openqa_webui.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/install/openqa_webui.pm b/tests/install/openqa_webui.pm index 19a976cb..254f88bd 100644 --- a/tests/install/openqa_webui.pm +++ b/tests/install/openqa_webui.pm @@ -11,7 +11,8 @@ sub add_repo { ppc64le => 'Factory_PowerPC' ); my $repo = 'openSUSE_' . $repo_suffix{get_required_var('ARCH')}; - my $repo_url = get_var('OPENQA_REPO_URL', "obs://devel:openQA/$repo"); + my $project = get_var('OPENQA_OBS_PROJECT', 'devel:openQA'); + my $repo_url = get_var('OPENQA_REPO_URL', "obs://$project/$repo"); assert_script_run("zypper -n ar -p 95 -f '$repo_url' openQA"); assert_script_run('retry -e -s 30 -r 7 -- zypper -n --gpg-auto-import-keys ref', timeout => 4000); }