gotest: avoid using echo inside $()
gotest: avoid using echo inside $()

The handling of newlines is not portable between bash and ksh.

Change-Id: I31cf57c9b2bcf98e8390ab92b75565a6798872de
Reviewed-on: https://go-review.googlesource.com/c/164597
Reviewed-by: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>

golang/gofrontend,golang/gofrontend,golang/gofrontend,golang/gofrontend