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):
5151 )
5252 time .sleep (1 )
5353
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+
5458 self .setup_client = Bitbox02Client (self .path )
5559 self .setup_bb02 = self .setup_client .restore_device ()
5660 self .setup_client .close ()
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ def start(self):
6161 )
6262 # Wait for simulator to be up
6363 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+
6468 try :
6569 enum_res = process_commands (["--emulators" , "enumerate" ])
6670 found = False
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ def start(self):
5858 )
5959 # Wait for simulator to be up
6060 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+
6165 try :
6266 self .dev = BitboxSimulator ('127.0.0.1' , 35345 )
6367 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):
8282
8383 # Wait for emulator to be up
8484 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+
8589 time .sleep (1 )
8690 try :
8791 # 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):
7777 sock .connect (('127.0.0.1' , 11044 ))
7878 sock .settimeout (0 )
7979 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+
8084 try :
8185 sock .sendall (b"PINGPING" )
8286 r = sock .recv (8 )
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ def start(self):
7979 )
8080 # Wait for simulator to be up
8181 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+
8286 try :
8387 enum_res = process_commands (["--emulators" , "enumerate" ])
8488 found = False
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ def start(self):
7676 sock .connect (('127.0.0.1' , 21324 ))
7777 sock .settimeout (0 )
7878 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+
7983 try :
8084 sock .sendall (b"PINGPING" )
8185 r = sock .recv (8 )
You can’t perform that action at this time.
0 commit comments