cmd/jujud: avoid duplicate code for counting upgrade attempts in upgrade tests
cmd/jujud: avoid duplicate code for counting upgrade attempts in upgrade tests

marcmolla/juju,waigani/juju,marcoceppi/juju,gabriel-samfira/juju,macgreagoir/juju,howbazaar/juju,anastasiamac/juju,bz2/juju,davecheney/juju,Altoros/juju-vmware,cloud-green/juju,tsakas/juju,perrito666/juju,wwitzel3/juju,voidspace/juju,ericsnowcurrently/juju,waigani/juju,makyo/juju,alesstimec/juju,Altoros/juju-vmware,marcoceppi/juju,mikemccracken/juju,gabriel-samfira/juju,reedobrien/juju,waigani/juju,Altoros/juju-cloudsigma,thomnico/juju,howbazaar/juju,macgreagoir/juju,perrito666/juju,tsakas/juju,gabriel-samfira/juju,makyo/juju,makyo/juju,marcmolla/juju,frankban/juju-tmp,gabriel-samfira/juju,cmars/juju,Altoros/juju-cloudsigma,bac/juju,axw/juju,axw/juju,dimitern/juju,perrito666/juju,tasdomas/juju,frankban/juju,gabriel-samfira/juju,davecheney/juju,sinzui/juju,AdamIsrael/juju,marcoceppi/juju,mhilton/juju,mjs/juju,frankban/juju-tmp,kat-co/juju,Altoros/juju-cloudsigma,dimitern/juju,perrito666/juju,waigani/juju,marcoceppi/juju,frankban/juju,mikemccracken/juju,voidspace/juju,marcmolla/juju,kat-co/juju,wwitzel3/juju,mhilton/juju-juju,bogdanteleaga/juju,frankban/juju,mhilton/juju-juju,AdamIsrael/juju,anastasiamac/juju,bogdanteleaga/juju,bac/juju,bogdanteleaga/juju,reedobrien/juju,Altoros/juju-vmware,mhilton/juju,alesstimec/juju,mikemccracken/juju,cherylj/juju,mjs/juju,tych0/juju,marcmolla/juju,thomnico/juju,tasdomas/juju,sinzui/juju,fwereade/juju,axw/juju,fwereade/juju,macgreagoir/juju,cmars/juju,tych0/juju,jrwren/juju,mhilton/juju-juju,sinzui/juju,fwereade/juju,mhilton/juju,bogdanteleaga/juju,mikemccracken/juju,anastasiamac/juju,cherylj/juju,cherylj/juju,jrwren/juju,jrwren/juju,cmars/juju,frankban/juju,thomnico/juju,tych0/juju,tych0/juju,makyo/juju,bac/juju,mhilton/juju-juju,alesstimec/juju,reedobrien/juju,anastasiamac/juju,bac/juju,ericsnowcurrently/juju,dooferlad/juju,bz2/juju,axw/juju,dimitern/juju,dooferlad/juju,howbazaar/juju,tasdomas/juju,axw/juju,howbazaar/juju,ericsnowcurrently/juju,bz2/juju,ericsnowcurrently/juju,AdamIsrael/juju,cmars/juju,mjs/juju,davecheney/juju,frankban/juju-tmp,mhilton/juju,howbazaar/juju,alesstimec/juju,voidspace/juju,dimitern/juju,cherylj/juju,tasdomas/juju,tsakas/juju,mjs/juju,mikemccracken/juju,dooferlad/juju,mjs/juju,bz2/juju,bz2/juju,mjs/juju,cloud-green/juju,Altoros/juju-vmware,wwitzel3/juju,kat-co/juju,cloud-green/juju,marcmolla/juju,wwitzel3/juju,AdamIsrael/juju,perrito666/juju,davecheney/juju,tsakas/juju,reedobrien/juju,bac/juju,dooferlad/juju,kat-co/juju,macgreagoir/juju,alesstimec/juju,Altoros/juju-cloudsigma,anastasiamac/juju,voidspace/juju,thomnico/juju,dimitern/juju,dooferlad/juju,macgreagoir/juju,sinzui/juju,fwereade/juju,kat-co/juju,mjs/juju,reedobrien/juju,cloud-green/juju,frankban/juju,frankban/juju-tmp,ericsnowcurrently/juju