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:
parent
02d8873753
commit
9cb960d9be
2 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue