mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-08-25 08:35:49 +00:00
Reduce pagure.io usage (WIP)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
adee4b7b8a
commit
93ea483979
0
updvercheck.py → data/updvercheck.py
Normal file → Executable file
0
updvercheck.py → data/updvercheck.py
Normal file → Executable file
BIN
data/video.ogv
Normal file
BIN
data/video.ogv
Normal file
Binary file not shown.
@ -474,7 +474,7 @@ sub repos_mirrorlist {
|
||||
sub get_setup_repos_script {
|
||||
# ensure the 'setup_repos.py' downloader script is present
|
||||
if (script_run "ls /usr/local/bin/setup_repos.py") {
|
||||
assert_script_run 'curl --retry-delay 10 --max-time 30 --retry 5 -o /usr/local/bin/setup_repos.py https://pagure.io/fedora-qa/os-autoinst-distri-fedora/raw/main/f/setup_repos.py', timeout => 180;
|
||||
assert_script_run 'curl --retry-delay 10 --max-time 30 --retry 5 -o /usr/local/bin/setup_repos.py ' . autoinst_url . '/data/setup_repos.py', timeout => 180;
|
||||
assert_script_run 'chmod ugo+x /usr/local/bin/setup_repos.py';
|
||||
}
|
||||
}
|
||||
@ -1297,7 +1297,7 @@ sub advisory_check_nonmatching_packages {
|
||||
# ensure python3-dnf is present for the check script
|
||||
assert_script_run 'dnf -y install python3-dnf' unless (get_var("CANNED"));
|
||||
# download the check script and run it
|
||||
assert_script_run 'curl --retry-delay 10 --max-time 30 --retry 5 -o updvercheck.py https://pagure.io/fedora-qa/os-autoinst-distri-fedora/raw/main/f/updvercheck.py', timeout => 180;
|
||||
assert_script_run 'curl --retry-delay 10 --max-time 30 --retry 5 -o updvercheck.py ' . autoinst_url . '/data/updvercheck.py', timeout => 180;
|
||||
my $advisory = get_var("ADVISORY");
|
||||
my $cmd = 'python3 ./updvercheck.py /mnt/updatepkgs.txt /tmp/installedupdatepkgs.txt';
|
||||
$cmd .= " $advisory" if ($advisory);
|
||||
|
@ -26,7 +26,7 @@ sub run {
|
||||
else {
|
||||
assert_script_run("dnf install -y extremetuxracer", timeout => 180);
|
||||
}
|
||||
assert_script_run("curl -O https://pagure.io/fedora-qa/openqa_testdata/blob/thetree/f/video/video.ogv", timeout => 120);
|
||||
assert_script_run("curl -O " . autoinst_url . "/data/video.ogv", timeout => 120);
|
||||
# Put the downloaded video in the Videos folder
|
||||
assert_script_run("mv video.ogv /home/$user/Videos/");
|
||||
desktop_vt();
|
||||
|
Loading…
Reference in New Issue
Block a user