Don't wipe out test directory before we have used its contents.

Fixes a "File not found" problem when trying to output the test log
for tests that suppress their failure.