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.
Merge pull request #1557 from kacfengine/testall_workdir_fix

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