tests: Fix compressed test output padding logic
tests: Fix compressed test output padding logic

The current logic tries to count from 1 to 40 and ignores paddings
of 0 and 1 to 40. This doesn't work for counter + 1 mod 40 == 0
like here for counter value 159

TEST: virsh-all
      ........................................ 40
      ........................................ 80
      ........................................ 120
      ....................................... 159 OK
PASS: virsh-all

Also seq isn't portable. Therefore, calculate the correct padding
length directly and use printf to output it at once.

siboulet/libvirt-openvz,fabianfreyer/libvirt,kantai/libvirt-vfork,trainstack/libvirt,leilihh/libvirt,warewolf/libvirt,dumbbell/libvirt,libvirt/libvirt,andreabolognani/libvirt,zippy2/libvirt,VenkatDatta/libvirt,eskultety/libvirt,rmarwaha/libvirt,soulxu/libvirt-xuhj,jardasgit/libvirt,usc-isi/libvirt,soulxu/libvirt-xuhj,siboulet/libvirt-openvz,zhlcindy/libvirt-1.1.4-maintain,warewolf/libvirt,rmarwaha/libvirt,eskultety/libvirt,rmarwaha/libvirt,trainstack/libvirt,iam-TJ/libvirt,dumbbell/libvirt,agx/libvirt,cbosdo/libvirt,wiedi/libvirt,olafhering/libvirt,jfehlig/libvirt,rmarwaha/libvirt1,agx/libvirt,jeckersb/libvirt,usc-isi/libvirt,eskultety/libvirt,warewolf/libvirt,jeckersb/libvirt,soulxu/libvirt-xuhj,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,nertpinx/libvirt,rmarwaha/libvirt,trainstack/libvirt,emaste/libvirt,rmarwaha/libvirt1,shugaoye/libvirt,novel/fbsd-libvirt,leilihh/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,foomango/libvirt,zippy2/libvirt,warewolf/libvirt,elmarco/libvirt,emaste/libvirt,crobinso/libvirt,iam-TJ/libvirt,libvirt/libvirt,datto/libvirt,siboulet/libvirt-openvz,siboulet/libvirt-openvz,danwent/libvirt-ovs,shugaoye/libvirt,leilihh/libvirt,rlaager/libvirt,fabianfreyer/libvirt,taget/libvirt,wiedi/libvirt,zhlcindy/libvirt-1.1.4-maintain,kantai/libvirt-vfork,usc-isi/libvirt,taget/libvirt,zippy2/libvirt,rmarwaha/libvirt1,andreabolognani/libvirt,zippy2/libvirt,rlaager/libvirt,emaste/libvirt,datto/libvirt,elmarco/libvirt,rmarwaha/libvirt,iam-TJ/libvirt,novel/fbsd-libvirt,cbosdo/libvirt,rmarwaha/libvirt1,danwent/libvirt-ovs,olafhering/libvirt,trainstack/libvirt,leilihh/libvirt,andreabolognani/libvirt,warewolf/libvirt,trainstack/libvirt,cbosdo/libvirt,novel/fbsd-libvirt,elmarco/libvirt,nertpinx/libvirt,bjzhang/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,foomango/libvirt,dumbbell/libvirt,jeckersb/libvirt,cbosdo/libvirt,emaste/libvirt,jeckersb/libvirt,iam-TJ/libvirt,dumbbell/libvirt,rlaager/libvirt,shugaoye/libvirt,novel/fbsd-libvirt,usc-isi/libvirt,emaste/libvirt,zhlcindy/libvirt-1.1.4-maintain,nertpinx/libvirt,foomango/libvirt,wiedi/libvirt,dumbbell/libvirt,fabianfreyer/libvirt,wiedi/libvirt,shugaoye/libvirt,danwent/libvirt-ovs,taget/libvirt,iam-TJ/libvirt,wiedi/libvirt,jardasgit/libvirt,soulxu/libvirt-xuhj,soulxu/libvirt-xuhj,VenkatDatta/libvirt,bjzhang/libvirt,elmarco/libvirt,jardasgit/libvirt,leilihh/libvirt,rmarwaha/libvirt,warewolf/libvirt,trainstack/libvirt,rmarwaha/libvirt1,foomango/libvirt,rlaager/libvirt,dumbbell/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,olafhering/libvirt,kantai/libvirt-vfork,leilihh/libvirt,bjzhang/libvirt,bjzhang/libvirt,olafhering/libvirt,usc-isi/libvirt,libvirt/libvirt,crobinso/libvirt,iam-TJ/libvirt,eskultety/libvirt,crobinso/libvirt,wiedi/libvirt,novel/fbsd-libvirt,wiedi/libvirt,trainstack/libvirt,kantai/libvirt-vfork,agx/libvirt,jfehlig/libvirt,bjzhang/libvirt,jardasgit/libvirt,danwent/libvirt-ovs,crobinso/libvirt,novel/fbsd-libvirt,datto/libvirt,novel/fbsd-libvirt,taget/libvirt,agx/libvirt,nertpinx/libvirt,rlaager/libvirt,taget/libvirt,datto/libvirt,warewolf/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,libvirt/libvirt,rmarwaha/libvirt1,emaste/libvirt,jeckersb/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,elmarco/libvirt,cbosdo/libvirt,andreabolognani/libvirt,eskultety/libvirt,foomango/libvirt,nertpinx/libvirt,siboulet/libvirt-openvz,VenkatDatta/libvirt,kantai/libvirt-vfork,jeckersb/libvirt,jfehlig/libvirt,jeckersb/libvirt,emaste/libvirt,datto/libvirt,iam-TJ/libvirt