Skip to content

Commit

Permalink
add custom location of testsuite package
Browse files Browse the repository at this point in the history
  • Loading branch information
tblume committed May 15, 2024
1 parent 8d6329c commit d1f719d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions tests/systemd_testsuite/prepare_systemd_and_testsuite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,25 @@ sub run {
add_suseconnect_product(get_addon_fullname('sdk'));
add_suseconnect_product(get_addon_fullname('phub'));
add_suseconnect_product(get_addon_fullname('python3'));

my $repo = sprintf('http://download.suse.de/download/ibs/SUSE:/SLE-%s:/GA/standard/',
get_var('VERSION'));
zypper_call("ar $repo systemd-tests");
}

#install testsuite and dependecies
zypper_call('ref');
zypper_call("in @pkgs");
# QA_TESTSUITE_REPO is meant to override the default repos with a custom OBS repo to test changes on the test suite package.
my $qa_testsuite_repo = get_var('QA_TESTSUITE_REPO', '');
if ($qa_testsuite_repo) {
my $tsrepo = sprintf($qa_testsuite_repo,
get_var('VERSION'));
zypper_call("ar $tsrepo systemd-tests");

#install testsuite and dependecies
zypper_call('--gpg-auto-import-keys ref');
if (get_var('SYSTEMD_FROM_TESTREPO')) {
zypper_call 'in --force-resolution --from systemd-tests systemd systemd-sysvinit udev libsystemd0 systemd-coredump libudev1';
}
}
zypper_call("in --force-resolution @pkgs");

# navigate to test case directory
# extract all available test cases
Expand Down

0 comments on commit d1f719d

Please sign in to comment.