diff --git a/Sanity/upstream-scripttests/runtest.sh b/Sanity/upstream-scripttests/runtest.sh index d00a727..4c315b6 100755 --- a/Sanity/upstream-scripttests/runtest.sh +++ b/Sanity/upstream-scripttests/runtest.sh @@ -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"