File tree Expand file tree Collapse file tree 7 files changed +28
-0
lines changed Expand file tree Collapse file tree 7 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ def start(self):
51
51
)
52
52
time .sleep (1 )
53
53
54
+ # Prevent CI from lingering until timeout:
55
+ if self .simulator_proc .poll () is not None :
56
+ raise f"BitBox02 simulator failed with exit code #{ self .simulator_proc .poll ()} "
57
+
54
58
self .setup_client = Bitbox02Client (self .path )
55
59
self .setup_bb02 = self .setup_client .restore_device ()
56
60
self .setup_client .close ()
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ def start(self):
61
61
)
62
62
# Wait for simulator to be up
63
63
while True :
64
+ # Prevent CI from lingering until timeout:
65
+ if self .coldcard_proc .poll () is not None :
66
+ raise f"coldcard simulator failed with exit code #{ self .coldcard_proc .poll ()} "
67
+
64
68
try :
65
69
enum_res = process_commands (["--emulators" , "enumerate" ])
66
70
found = False
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ def start(self):
58
58
)
59
59
# Wait for simulator to be up
60
60
while True :
61
+ # Prevent CI from lingering until timeout:
62
+ if self .simulator_proc .poll () is not None :
63
+ raise f"BitBox simulator failed with exit code #{ self .simulator_proc .poll ()} "
64
+
61
65
try :
62
66
self .dev = BitboxSimulator ('127.0.0.1' , 35345 )
63
67
reply = send_plain (b'{"password":"0000"}' , self .dev )
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ def start(self):
82
82
83
83
# Wait for emulator to be up
84
84
while True :
85
+ # Prevent CI from lingering until timeout:
86
+ if self .emulator_proc .poll () is not None :
87
+ raise f"Jade simulator failed with exit code #{ self .emulator_proc .poll ()} "
88
+
85
89
time .sleep (1 )
86
90
try :
87
91
# Try to connect and set the test seed
Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ def start(self):
77
77
sock .connect (('127.0.0.1' , 11044 ))
78
78
sock .settimeout (0 )
79
79
while True :
80
+ # Prevent CI from lingering until timeout:
81
+ if self .emulator_proc .poll () is not None :
82
+ raise f"Keepkey simulator failed with exit code #{ self .emulator_proc .poll ()} "
83
+
80
84
try :
81
85
sock .sendall (b"PINGPING" )
82
86
r = sock .recv (8 )
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ def start(self):
79
79
)
80
80
# Wait for simulator to be up
81
81
while True :
82
+ # Prevent CI from lingering until timeout:
83
+ if self .emulator_proc .poll () is not None :
84
+ raise f"Ledger simulator failed with exit code #{ self .emulator_proc .poll ()} "
85
+
82
86
try :
83
87
enum_res = process_commands (["--emulators" , "enumerate" ])
84
88
found = False
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ def start(self):
76
76
sock .connect (('127.0.0.1' , 21324 ))
77
77
sock .settimeout (0 )
78
78
while True :
79
+ # Prevent CI from lingering until timeout:
80
+ if self .emulator_proc .poll () is not None :
81
+ raise f"Trezor simulator failed with exit code #{ self .emulator_proc .poll ()} "
82
+
79
83
try :
80
84
sock .sendall (b"PINGPING" )
81
85
r = sock .recv (8 )
You can’t perform that action at this time.
0 commit comments