1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-08-25 16:45:44 +00:00

Reduce pagure.io usage (WIP)

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-03-17 10:39:33 -07:00
parent adee4b7b8a
commit 93ea483979
5 changed files with 3 additions and 3 deletions

0
updvercheck.py → data/updvercheck.py Normal file → Executable file
View File

BIN
data/video.ogv Normal file

Binary file not shown.

View File

@ -474,7 +474,7 @@ sub repos_mirrorlist {
sub get_setup_repos_script { sub get_setup_repos_script {
# ensure the 'setup_repos.py' downloader script is present # ensure the 'setup_repos.py' downloader script is present
if (script_run "ls /usr/local/bin/setup_repos.py") { 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'; 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 # ensure python3-dnf is present for the check script
assert_script_run 'dnf -y install python3-dnf' unless (get_var("CANNED")); assert_script_run 'dnf -y install python3-dnf' unless (get_var("CANNED"));
# download the check script and run it # 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 $advisory = get_var("ADVISORY");
my $cmd = 'python3 ./updvercheck.py /mnt/updatepkgs.txt /tmp/installedupdatepkgs.txt'; my $cmd = 'python3 ./updvercheck.py /mnt/updatepkgs.txt /tmp/installedupdatepkgs.txt';
$cmd .= " $advisory" if ($advisory); $cmd .= " $advisory" if ($advisory);

View File

@ -26,7 +26,7 @@ sub run {
else { else {
assert_script_run("dnf install -y extremetuxracer", timeout => 180); 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 # Put the downloaded video in the Videos folder
assert_script_run("mv video.ogv /home/$user/Videos/"); assert_script_run("mv video.ogv /home/$user/Videos/");
desktop_vt(); desktop_vt();