pkg/jsonmessage: Wrap test failure messages so control characters align
pkg/jsonmessage: Wrap test failure messages so control characters align

When logging the failure of a case which involves control characters add line
feeds and spacing such that the expected and actual strings are aligned in the
same columns making comparisons easier.

Turns:
	jsonmessage_test.go:156: Expected "\x1b[2K\rstatus      1 B\r", got "\x1b[1K\x1b[K\rstatus      1 B\r"
Into:
	jsonmessage_test.go:156:
		Expected "\x1b[2K\rstatus      1 B\r"
		     got "\x1b[1K\x1b[K\rstatus      1 B\r"

Signed-off-by: Ian Campbell <9be92b3dbbd6611e3e4c9209fb3d04b4919e7cca@docker.com>

cpuguy83/docker,paralin/docker,michael-holzheu/docker,rhatdan/docker,crosbymichael/docker,yummypeng/docker,fcrisciani/docker,imkin/moby,HideoYamauchi/docker,sdurrheimer/docker,jwhonce/docker,pradipd/moby,ibuildthecloud/docker,whuwxl/docker,lixiaobing10051267/docker,SvenDowideit/docker,nawawi/docker,kolyshkin/moby,yummypeng/docker,mike1729/docker,gnailuy/docker,estesp/docker,moypray/docker,mikebrow/docker,dmcgowan/docker,amatsus/docker,ripcurld0/moby,kencochrane/docker,hqhq/moby,AkihiroSuda/docker,shhsu/docker,dims/docker,HideoYamauchi/docker,gnailuy/docker,tmp6154/docker,sarnautov/moby,lixiaobing10051267/docker,nalind/docker,jthelin/docker,shhsu/docker,laijs/docker,miminar/docker,tonistiigi/docker,coolljt0725/docker,mixja/docker,trebonian/docker,michael-holzheu/docker,alfred-landrum/docker,Mokolea/docker,pramodhkp/moby,dccurtis/docker,qudongfang/docker,coreos/docker,x1022as/docker,jimjag/docker,yosifkit/docker,xuxinkun/docker,jvanz/docker,ripcurld0/moby,johnstep/moby-moby,naveed-jamil-tenpearls/moby,sarnautov/moby,rremer/moby,ibuildthecloud/docker,bearstech/moby,kolyshkin/docker,konstruktoid/docker-1,naveed-jamil-tenpearls/moby,rremer/moby,kencochrane/docker,POLJM242/docker,dperny/docker,resin-io/docker,mstanleyjones/docker,laijs/docker,erikh/docker,tophj-ibm/docker,kencochrane/docker,duglin/docker,AkihiroSuda/docker,tophj-ibm/docker,amatsus/docker,trebonian/docker,miminar/docker,PatrickLang/moby,Syntaxide/docker,cyphar/docker,dsheets/moby,ndeloof/docker,allencloud/docker,dperny/docker,bearstech/moby,maxamillion/docker,mahak/docker,pradipd/moby,vdemeester/docker,ibuildthecloud/docker,dsheets/moby,KarthikNayak/docker,mkumatag/docker,flavio/docker,Syntaxide/docker,thaJeztah/docker,ColinHebert/docker,shishir-a412ed/docker,prertik/docker,erikh/docker,bonczj/moby-json-file-logger,ColinHebert/docker,charleszheng44/moby,dgageot/docker,x1022as/docker,unclejack/docker,mtesselH/docker,ColinHebert/docker,catinthesky/docker,jameszhan/docker,yongtang/docker,amatsus/docker,akira-baruah/docker,lixiaobing10051267/docker,whuwxl/docker,raja-sami-10p/moby,ffoysal/docker,moby/moby,docker/docker,ndeloof/docker,shishir-a412ed/docker,hqhq/moby,mahak/docker,KingEmet/docker,srust/docker,jimjag/docker,fcrisciani/docker,kojiromike/docker,dgageot/docker,xuxinkun/docker,tmp6154/docker,justincormack/docker,thtanaka/docker,gnailuy/docker,tianon/docker,erikstmartin/docker,qudongfang/docker,dgageot/docker,qudongfang/docker,xuxinkun/docker,liaoqingwei/docker,Mokolea/docker,KarthikNayak/docker,AkihiroSuda/docker,nalind/docker,vdemeester/docker,lixiaobing1/docker,Mokolea/docker,dsheets/moby,prertik/docker,moul/docker,djs55/docker,jameszhan/docker,noironetworks/docker,dperny/docker,moul/docker,trebonian/docker,resin-io/docker,mkumatag/docker,mstanleyjones/docker,ripcurld0/moby,danyalKhaliq10p/moby,darrenstahlmsft/moby,allencloud/docker,ndeloof/docker,konstruktoid/docker-1,noironetworks/docker,konstruktoid/docker-upstream,sterchelen/docker,tonistiigi/docker,gjaskiewicz/moby,Ramzec/docker,jwhonce/docker,coolljt0725/docker,estesp/docker,bonczj/moby-json-file-logger,diogomonica/docker,docker/docker,nawawi/docker,tophj-ibm/moby,ibuildthecloud/docker,Ramzec/docker,mixja/docker,charleszheng44/moby,alfred-landrum/docker,paralin/docker,coreos/docker,mikebrow/docker,moul/docker,flavio/docker,haveatry/docker,SvenDowideit/docker,maxamillion/docker,KingEmet/docker,Ramzec/docker,konstruktoid/docker-1,kojiromike/docker,dims/docker,moypray/docker,AkihiroSuda/docker,diogomonica/docker,sterchelen/docker,jvanz/docker,shishir-a412ed/docker,sdurrheimer/docker,jameszhan/docker,nalind/docker,jlhawn/docker,yongtang/docker,yosifkit/docker,ffoysal/docker,naveed-jamil-tenpearls/moby,mike1729/docker,moby/moby,HideoYamauchi/docker,imkin/moby,konstruktoid/docker-upstream,KingEmet/docker,tophj-ibm/moby,madhanrm/docker,mahak/docker,mtesselH/docker,unclejack/docker,darrenstahlmsft/docker,catinthesky/docker,rhatdan/docker,thaJeztah/docker,danyalKhaliq10p/moby,JMesser81/docker,dims/docker,moby/moby,scotttlin/docker,gschaetz/moby,mkumatag/docker,imkin/moby,djs55/docker,kojiromike/docker,laijs/moby,cpuguy83/docker,lixiaobing1/docker,rhatdan/docker,resin-io/docker,moypray/docker,scotttlin/docker,justincormack/docker,tophj-ibm/moby,crosbymichael/docker,gjaskiewicz/moby,yasiramin10p/moby,ibuildthecloud/docker,jvanz/docker,moul/docker,bearstech/moby,fcrisciani/docker,tonistiigi/docker,raja-sami-10p/moby,pramodhkp/moby,vdemeester/docker,duglin/docker,PatrickLang/moby,maxamillion/docker,danyalKhaliq10p/moby,nalind/docker,darrenstahlmsft/docker,yasiramin10p/moby,miminar/docker,q384566678/docker,q384566678/docker,yasiramin10p/moby,unclejack/docker,rancher/docker,mtesselH/docker,jwhonce/docker,mstanleyjones/docker,erikh/docker,darrenstahlmsft/moby,PatrickLang/moby,michael-holzheu/docker,cyphar/docker,darrenstahlmsft/moby,JMesser81/docker,thaJeztah/docker,madhanrm/docker,YuPengZTE/docker,scotttlin/docker,dmcgowan/docker,erikstmartin/docker,mike1729/docker,nawawi/docker,tklauser/docker,noironetworks/docker,gschaetz/moby,srust/docker,johnstep/moby-moby,tklauser/docker,jimjag/docker,thtanaka/docker,mahak/docker,laijs/moby,rancher/docker,konstruktoid/docker-upstream,KarthikNayak/docker,dmcgowan/docker,docker/docker,charleszheng44/moby,mixja/docker,x1022as/docker,rancher/docker,SvenDowideit/docker,catinthesky/docker,flavio/docker,pradipd/moby,bonczj/moby-json-file-logger,mikebrow/docker,kolyshkin/moby,konstruktoid/docker-upstream,yosifkit/docker,diogomonica/docker,q384566678/docker,gjaskiewicz/moby,coolljt0725/docker,jthelin/docker,thtanaka/docker,jimjag/docker,Syntaxide/docker,POLJM242/docker,dccurtis/docker,sdurrheimer/docker,tianon/docker,kolyshkin/docker,yongtang/docker,djs55/docker,thaJeztah/docker,allencloud/docker,flavio/docker,paralin/docker,yummypeng/docker,sarnautov/moby,cpuguy83/docker,trebonian/docker,YuPengZTE/docker,shhsu/docker,liaoqingwei/docker,moby/moby,rremer/moby,estesp/docker,JMesser81/docker,laijs/docker,dccurtis/docker,ffoysal/docker,jlhawn/docker,sterchelen/docker,liaoqingwei/docker,yosifkit/docker,tophj-ibm/docker,YuPengZTE/docker,justincormack/docker,pramodhkp/moby,gnailuy/docker,crosbymichael/docker,raja-sami-10p/moby,cpuguy83/docker,haveatry/docker,tklauser/docker,coreos/docker,cyphar/docker,darrenstahlmsft/docker,srust/docker,jlhawn/docker,bearstech/moby,alfred-landrum/docker,paralin/docker,haveatry/docker,johnstep/moby-moby,akira-baruah/docker,whuwxl/docker,hqhq/moby,kolyshkin/moby,gschaetz/moby,madhanrm/docker,duglin/docker,lixiaobing1/docker,prertik/docker,nawawi/docker,Mokolea/docker,erikstmartin/docker,Ramzec/docker,tmp6154/docker,laijs/moby