Thanks for finding this, Thiru! Your patch works for me.
However we've sometimes had trouble in the past when using /tmp. Might it be better to use build/test like the other tests?
Also, it would be safest to pass paths down from ant.
Plus, it will make things easier to debug if the test output directory remains. So we should remove it before the tests, to start with a clean slate, and leave it after, since it's in build/ and will be removed by 'ant clean'.
And finally, it's redundant to both echo every line and echo informative messages.
Here's a new version that addresses all of these.