[autotest] Improve job timeout surfacing in run_suite

- run_suite now compares job_started_time, job_finished_time
against afe_job.max_runtime_mins to determine
whether a child job hit its own timeout or was aborted
because the suite has timed out.

- tests that are aborted with RUNNING status are handled
  properly.

BUG=chromium:380702
TEST=run_suite -m agaist existing jobs. The following cases
are excercised:
1. suite job was aborted because it timed out ->SUITE_TIMEOUT
2. some tests hit its own time out -> ERROR
3. suite job failed -> INFRA_FAILURE
4. all test passed -> GOOD
5. some test failed, some were aborted due to suite has timed out
   -> ERROR

Change-Id: Ic508a663a5ddd8bf90d68303ec87978c3471562c
Reviewed-on: https://chromium-review.googlesource.com/203810
Tested-by: Fang Deng <fdeng@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
2 files changed