mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 09:30:13 +01:00
ci/bare-metal: Re-open serial and everything after test phase timeout.
If we got a "Reached the end of the CPU serial log without finding a result" because the test phase timed out, then the CPU serial would have been closed as part of the timeout process, so we need to close the rest and re-instantiate the servo run class. fastboot and poe already re-instantiate the class on retry. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17689>
This commit is contained in:
parent
4e2f6e5b4c
commit
42a52a8be1
1 changed files with 7 additions and 10 deletions
|
|
@ -164,18 +164,15 @@ def main():
|
||||||
'--test-timeout', type=int, help='Test phase timeout (minutes)', required=True)
|
'--test-timeout', type=int, help='Test phase timeout (minutes)', required=True)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
servo = CrosServoRun(args.cpu, args.ec, args.test_timeout * 60)
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
servo = CrosServoRun(args.cpu, args.ec, args.test_timeout * 60)
|
||||||
retval = servo.run()
|
retval = servo.run()
|
||||||
if retval != 2:
|
|
||||||
break
|
|
||||||
|
|
||||||
# power down the CPU on the device
|
# power down the CPU on the device
|
||||||
servo.ec_write("power off\n")
|
servo.ec_write("power off\n")
|
||||||
|
|
||||||
servo.close()
|
servo.close()
|
||||||
|
|
||||||
|
if retval != 2:
|
||||||
sys.exit(retval)
|
sys.exit(retval)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue