tester: More robust error handling of log file and temp dir clean up
tester: More robust error handling of log file and temp dir clean up

The output of invoked test command could dump invalid chars to the log
file because they get it as the stdout/stderr handle from us. When we
read back the file content to submit to server we could hit a "invalid
encoding" error in the "finally" stanza. Use "ignore" error handling to
tolerate that.

Also, use try-catch to catch other errors that could happen during
reporting, that way we can ensure the rmdir is going to happen.

Signed-off-by: Fam Zheng <df9fd617995bad07eac70e27aa3fe5069270e3bd@redhat.com>

patchew-project/patchew,famz/patchew,patchew-project/patchew,famz/patchew,patchew-project/patchew,patchew-project/patchew,famz/patchew,famz/patchew