graphyte: stop when initialization failed

When initializing the instrument and/or the DUT, the script is now
stopped as early as possible when it detects an error. This makes it
easier to trace from the console output message. Now, if the instrument
or the DUT cannot be correctly initialized, the last line of the console
output will say it clearly.

BUG=none
TEST=turn off the instrument, run graphyte, and check the console output.
TEST=turn off the DUT, run graphyte, and check the console output

Change-Id: I39568cdd2f0b5ddac84f64b0f7c68e9c92d833a3
Reviewed-on: https://chromium-review.googlesource.com/512682
Commit-Ready: Shen-En Shih <[email protected]>
Tested-by: Shen-En Shih <[email protected]>
Reviewed-by: Chih-Yu Huang <[email protected]>
2 files changed
OSZAR »