Remove *SPECPARTS dir in tests which use rpmbuild

RPM on F39+ creates dir <NVR>-SPECPARTS in BUILD during %%setup, which
breaks tests which use `cd BUILD/<component>*`. The new dir is needed
only for components which dynamically generate spec files during
%%build or %%install phases, which this component is not.
This commit is contained in:
Zdenek Dohnal 2023-08-11 13:32:10 +02:00
commit 9cb960d9be
2 changed files with 2 additions and 0 deletions

View file

@ -85,6 +85,7 @@ rlJournalStart
rlRun "mkdir BUILD" 0 "Creating BUILD directory"
rlRun "rpmbuild --nodeps --define '_topdir $TmpDir' -bp $TmpDir/SPECS/*spec" \
0 "Preparing sources"
rm -rf BUILD/*SPECPARTS
rlRun "cd BUILD/vim*"
rlRun "chown -R $TESTER.$TESTER $TmpDir" 0 "Setting permissions"
rlRun "export LANG=en_US.UTF-8" 0 "Setting \$LANG to US locale"

View file

@ -61,6 +61,7 @@ rlJournalStart
rlRun "mkdir BUILD" 0 "Creating BUILD directory"
rlRun "rpmbuild --nodeps --define '_topdir $TmpDir' -bp $TmpDir/SPECS/*spec" \
0 "Preparing sources"
rm -rf BUILD/*SPECPARTS
rlRun "cd BUILD/vim*"
rlRun "chown -R $TESTER.$TESTER $TmpDir" 0 "Setting permissions"
rlRun "export LANG=en_US.UTF-8" 0 "Setting \$LANG to US locale"