Adjusting upstream-scripttests for testing-farm

disabling tests unstable on testing-farm
This commit is contained in:
František Hrdina 2024-04-04 13:19:17 +02:00
commit 9ee60eff23

View file

@ -85,6 +85,16 @@ rlJournalStart
rlRun "mkdir BUILD" 0 "Creating BUILD directory"
rlRun "rpmbuild --nodeps --define '_topdir $TmpDir' -bp $TmpDir/SPECS/*spec" \
0 "Preparing sources"
# Disabling tests unstable on testing-farm
grep -r "testing-farm" /var/ARTIFACTS/*/plans/all/discover/default-0/tests
if [ $? -eq 0 ]; then
rlLog "Disabling tests unstable on testing-farm"
rlLog "Disabled tests Test_opt_set_keycode, Test_set_completion"
sed -i "/^func Test_opt_set_keycode\(\)/,/^endfunc$/d" BUILD/vim91/src/testdir/test_options.vim
sed -i "/^func Test_set_completion\(\)/,/^endfunc$/d" BUILD/vim91/src/testdir/test_options.vim
fi
if rlIsFedora || rlIsRHELLike '>9'
then
rlRun "rm -rf BUILD/*SPECPARTS &> /dev/null" 0,1 "Remove the additional directory if exists"