mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 14:03:09 +00:00
Give setup_repos.py longer for huge updates
Looking at you, FEDORA-2024-9b9da603e1 Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
5e93dacfff
commit
b1d0d448ea
@ -583,6 +583,9 @@ sub setup_repos {
|
|||||||
get_setup_repos_script;
|
get_setup_repos_script;
|
||||||
my $wastring = join(',', @was);
|
my $wastring = join(',', @was);
|
||||||
my $udstring;
|
my $udstring;
|
||||||
|
# this will be the timeout for the download command, we set it now
|
||||||
|
# so we can make it longer for really big updates below
|
||||||
|
my $timeout = 600;
|
||||||
# work out the list of update/task NVRs to test
|
# work out the list of update/task NVRs to test
|
||||||
if (get_var("ADVISORY_NVRS") || get_var("ADVISORY_NVRS_1")) {
|
if (get_var("ADVISORY_NVRS") || get_var("ADVISORY_NVRS_1")) {
|
||||||
# regular update case
|
# regular update case
|
||||||
@ -602,6 +605,8 @@ sub setup_repos {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$udstring = join(',', @nvrs);
|
$udstring = join(',', @nvrs);
|
||||||
|
# bump the timeout if we have a huge update
|
||||||
|
$timeout = 1800 if (scalar(@nvrs) > 100);
|
||||||
}
|
}
|
||||||
elsif (get_var("KOJITASK")) {
|
elsif (get_var("KOJITASK")) {
|
||||||
# Koji task case (KOJITASK will be set). If multiple tasks,
|
# Koji task case (KOJITASK will be set). If multiple tasks,
|
||||||
@ -619,7 +624,7 @@ sub setup_repos {
|
|||||||
# write repo config files if asked
|
# write repo config files if asked
|
||||||
$cmd .= " -c" if ($args{configs});
|
$cmd .= " -c" if ($args{configs});
|
||||||
$cmd .= " $arch";
|
$cmd .= " $arch";
|
||||||
assert_script_run $cmd, 600;
|
assert_script_run $cmd, $timeout;
|
||||||
unless ($args{waonly} || $tag) {
|
unless ($args{waonly} || $tag) {
|
||||||
upload_logs "/mnt/updatepkgnames.txt";
|
upload_logs "/mnt/updatepkgnames.txt";
|
||||||
upload_logs "/mnt/updatepkgs.txt";
|
upload_logs "/mnt/updatepkgs.txt";
|
||||||
|
Loading…
Reference in New Issue
Block a user