Skip to content

Commit 43ddc9e

Browse files
committed
first_stage_test: Change the first stage timeout
Signed-off-by: Marc Hartmayer <[email protected]>
1 parent d9ecb0f commit 43ddc9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/first_stage_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,12 @@ def test_timeout_error(self):
225225
5. Python reads `b''` (i.e. EOF) from stdin (a closed pipe)
226226
6. Python runs `''` (a valid script) and exits with success
227227
"""
228+
# We do not want to wait the default of 10s, change it to 0.1s
229+
self.conn._first_stage_timeout = 0.1
230+
args = self.conn.get_boot_command()
228231

229232
proc = testlib.subprocess.Popen(
230-
args=self.args,
233+
args=args,
231234
stdout=testlib.subprocess.PIPE,
232235
stderr=testlib.subprocess.PIPE,
233236
preexec_fn=sys.stdin.close,

0 commit comments

Comments
 (0)