mesontest: Use test setup name in logfiles
mesontest: Use test setup name in logfiles

When using a setup, use the setup name as the namebase for the logfile
instead of the wrapper. The wrapper may not be set, or it may be shared
between test setups.

Also don't try to use the wrapper if it's an empty list.

Closes https://github.com/mesonbuild/meson/issues/1371

jpakkane/meson,jpakkane/meson,becm/meson,thiblahute/meson,fmuellner/meson,trhd/meson,ernestask/meson,aaronp24/meson,mesonbuild/meson,wberrier/meson,aaronp24/meson,MathieuDuponchelle/meson,becm/meson,jpakkane/meson,QuLogic/meson,jeandet/meson,rhd/meson,pexip/meson,becm/meson,mesonbuild/meson,wberrier/meson,QuLogic/meson,aaronp24/meson,thiblahute/meson,aaronp24/meson,mesonbuild/meson,becm/meson,jeandet/meson,becm/meson,ernestask/meson,trhd/meson,thiblahute/meson,mesonbuild/meson,trhd/meson,pexip/meson,QuLogic/meson,ernestask/meson,thiblahute/meson,jeandet/meson,jeandet/meson,becm/meson,pexip/meson,ernestask/meson,jpakkane/meson,becm/meson,rhd/meson,jeandet/meson,ernestask/meson,mesonbuild/meson,trhd/meson,QuLogic/meson,becm/meson,rhd/meson,thiblahute/meson,mesonbuild/meson,pexip/meson,pexip/meson,MathieuDuponchelle/meson,jeandet/meson,aaronp24/meson,MathieuDuponchelle/meson,pexip/meson,fmuellner/meson,wberrier/meson,aaronp24/meson,MathieuDuponchelle/meson,fmuellner/meson,ernestask/meson,mesonbuild/meson,thiblahute/meson,fmuellner/meson,trhd/meson,ernestask/meson,QuLogic/meson,wberrier/meson,QuLogic/meson,mesonbuild/meson,trhd/meson,thiblahute/meson,aaronp24/meson,QuLogic/meson,jpakkane/meson,rhd/meson,becm/meson,jpakkane/meson,fmuellner/meson,jeandet/meson,fmuellner/meson,QuLogic/meson,jeandet/meson,pexip/meson,rhd/meson,pexip/meson,pexip/meson,MathieuDuponchelle/meson,rhd/meson,wberrier/meson,jpakkane/meson,QuLogic/meson,wberrier/meson,mesonbuild/meson,rhd/meson,fmuellner/meson,pexip/meson,wberrier/meson,wberrier/meson,trhd/meson,trhd/meson,MathieuDuponchelle/meson,trhd/meson,thiblahute/meson,ernestask/meson,MathieuDuponchelle/meson,aaronp24/meson,mesonbuild/meson,ernestask/meson,thiblahute/meson,jpakkane/meson,MathieuDuponchelle/meson,MathieuDuponchelle/meson,jeandet/meson,fmuellner/meson,jpakkane/meson,becm/meson,fmuellner/meson,aaronp24/meson,rhd/meson