[FIX] script tests: Expect stdout text
[FIX] script tests: Expect stdout text

This adds support for text in stdout. Scripts either output parts of it
or nothing.

Bug: T96615
Change-Id: Ia454447bf55cb9c05da1204a26fe49004154cd14

happy5214/pywikibot-core,h4ck3rm1k3/pywikibot-core,hasteur/g13bot_tools_new,jayvdb/pywikibot-core,trishnaguha/pywikibot-core,Darkdadaah/pywikibot-core,TridevGuha/pywikibot-core,darthbhyrava/pywikibot-local,happy5214/pywikibot-core,hasteur/g13bot_tools_new,wikimedia/pywikibot-core,jayvdb/pywikibot-core,wikimedia/pywikibot-core,hasteur/g13bot_tools_new,magul/pywikibot-core,smalyshev/pywikibot-core,npdoty/pywikibot,magul/pywikibot-core,icyflame/batman,VcamX/pywikibot-core,PersianWikipedia/pywikibot-core,emijrp/pywikibot-core,Darkdadaah/pywikibot-core,h4ck3rm1k3/pywikibot-core,xZise/pywikibot-core,valhallasw/pywikibot-core,npdoty/pywikibot