Skip to content

Commit 825414b

Browse files
committed
Download script when openqa-bootstrap runs in Leap
https://progress.opensuse.org/issues/180905
1 parent fcdd328 commit 825414b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/openqa/install/openqa_bootstrap.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use warnings;
1111
use base "consoletest";
1212
use testapi;
1313
use utils;
14-
use version_utils qw(has_selinux);
14+
use version_utils qw(has_selinux is_leap);
1515

1616
sub run {
1717
select_console 'root-console';
@@ -24,7 +24,8 @@ sub run {
2424
if (has_selinux) {
2525
script_run('setsebool -P httpd_can_network_connect 1');
2626
}
27-
zypper_call('in openQA-bootstrap');
27+
if (is_leap) { assert_script_run('curl -L curl -L https://raw.githubusercontent.com/os-autoinst/openQA/refs/heads/master/script/openqa-bootstrap -o /usr/share/openqa/script/test_bootstrap'); }
28+
else { zypper_call('in openQA-bootstrap'); }
2829
my $proxy_var = get_var('OPENQA_WEB_PROXY') ? 'setup_web_proxy=' . get_var('OPENQA_WEB_PROXY') . ' ' : '';
2930
assert_script_run($proxy_var . "/usr/share/openqa/script/openqa-bootstrap", 4000);
3031
}

0 commit comments

Comments
 (0)