Ignore test log from git

The test runner generates an overall log and an individual log for each
test case. Ignore these from git.
Expand the brace expansion

Brace expansion does not work in POSIX sh, and these tests seem to run
under `/bin/sh`. Replace this with a `for` loop; two extra lines, but it
works.