[IMPROV] script_tests: Test for exit code later
[IMPROV] script_tests: Test for exit code later

As the test for exit code is not very descriptive it should do the tests
for the output first (which show the output when there is a problem).

Change-Id: Ic5100fe595baa49337c08f8c30b7bd68c4c63f87

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