tests: fix spurious failure due to I/O buffering * tests/parallel-tests-interrupt.tap: Ensure the dummy test script `foo.test' flushes its standard output before starting to grep the log file where such output is being redirected by the parallel test harness. Since we are at it, improve this same dummy script to better catch unexpected behaviours and results. Reported by Jim Meyering in automake bug#10418.