basic-upstream-test-suite: Use rlFetchSrcForInstalled outside of rlRun

Running it inside rlRun probably causes errors and warnings in CI on MR,
which are not influencing the final result, but confuses the reviewer:

:: [ 15:00:58 ] :: [   PASS   ] :: Command 'pushd /tmp/tmp.bUJ2DPhtrS'
(Expected 0, got 0)
:: [ 15:00:58 ] :: [   LOG    ] :: rlFetchSrcForInstalled: Fetching
source rpm for installed cups-2.4.7-1.fc40
:: [ 15:00:58 ] :: [   LOG    ] :: trying download from
'https://kojipkgs.fedoraproject.org/packages/cups/2.4.7/1.fc40/src/cups-2.4.7-1.fc40.src.rpm'
:: [ 15:00:58 ] :: [ WARNING  ] :: package 'cups-2.4.7-1.fc40.src.rpm'
was not successfully downloaded
:: [ 15:00:58 ] :: [   LOG    ] :: trying download from
'https://kojipkgs.fedoraproject.org/packages/cups/2.4.7/1.fc40/src/cups-2.4.7-1.fc40.src.rpm'
:: [ 15:00:58 ] :: [ WARNING  ] :: package 'cups-2.4.7-1.fc40.src.rpm'
was not successfully downloaded
:: [ 15:00:59 ] :: [  ERROR   ] :: parsing package info 'cups 2.4.7
1.fc40 src (none)

cups 2.4.7 1.fc40 x86_64 cups-2.4.7-1.fc40.src.rpm' failed
:: [ 15:00:59 ] :: [   LOG    ] :: trying download from
'https://kojipkgs.fedoraproject.org/packages////src/--.src.rpm'
:: [ 15:00:59 ] :: [ WARNING  ] :: package '--.src.rpm' was not
successfully downloaded
:: [ 15:01:00 ] :: [   LOG    ] :: trying download from
'https://kojipkgs.fedoraproject.org/packages/cups/2.4.7/1.fc40/src/cups-2.4.7-1.fc40.src.rpm'
:: [ 15:01:00 ] :: [ WARNING  ] :: package 'cups-2.4.7-1.fc40.src.rpm'
was not successfully downloaded
:: [ 15:01:00 ] :: [  ERROR   ] :: could not find buildID
:: [ 15:01:00 ] :: [  ERROR   ] :: could not find package url
:: [ 15:01:00 ] :: [  ERROR   ] :: package 'cups-2.4.7-1.fc40.src.rpm'
was not successfully downloaded
:: [ 15:01:00 ] :: [ WARNING  ] :: could not get package using method
'direct'
:: [ 15:01:06 ] :: [   PASS   ] :: Fetching the source rpm (Expected 0,
got 0)

Let's see if running outside of rlRun helps.
This commit is contained in:
Zdenek Dohnal 2023-09-21 08:55:26 +02:00
commit 7ca9f74e59

View file

@ -45,7 +45,7 @@ rlJournalStart
rlRun "pushd $TmpDir"
# extract rpm
rlRun "rlFetchSrcForInstalled $PACKAGE" 0 "Fetching the source rpm"
rlFetchSrcForInstalled $PACKAGE
rlRun "rpm --define '_topdir $TmpDir' -i *src.rpm" 0 "Installing the source rpm"
rlRun "su cupstester -c 'mkdir BUILD'" 0 "Create BUILD directory"
rlRun "su cupstester -c $'rpmbuild --nodeps --define \'_topdir $TmpDir\' -bp $TmpDir/SPECS/*spec'" 0 "Preparing sources"