[autotest] Move signal.alarm call inside try clause.
It is possible that alarm is triggered right after signal.alarm call
is made. If it's not in the try clause, the TimeoutException can be
bubbled up to the caller and take down the whole process.
BUG=chromium-os:34424
TEST=run unit test retry_unittest.py, run_suite for smoke tests on lumpy.
Change-Id: I42151326f55137271b2d2ce07d601d009c32f0f5
Reviewed-on: https://gerrit.chromium.org/gerrit/41457
Tested-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Dan Shi <dshi@chromium.org>
Reviewed-by: Dan Shi <dshi@chromium.org>
1 file changed