Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 30) sorted by relevance

12

/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/
A Dshell.py26 self, device: DeviceAdapter, prompt: str = 'uart:~$', timeout: float | None = None
30 self.base_timeout: float = timeout or device.base_timeout
32 def wait_for_prompt(self, timeout: float | None = None) -> bool:
38 timeout = timeout or self.base_timeout
39 timeout_time = time.time() + timeout
44 line = self._device.readline(timeout=0.5, print_output=False)
54 self, command: str, timeout: float | None = None, print_output: bool = True
62 timeout = timeout or self.base_timeout
72 regex=regex_command, timeout=1.0, print_output=print_output
78 regex=regex_prompt, timeout=timeout, print_output=print_output
A Dmcumgr.py58 def image_upload(self, image: Path | str, slot: int | None = None, timeout: int = 30):
/scripts/coccinelle/
A Dint_ms_to_timeout.cocci4 // Convert legacy integer timeouts to timeout API
6 // Some existing code assumes that timeout parameters are provided as
7 // integer milliseconds, when they were intended to be timeout values
43 // Identify call sites where an identifier is used for the timeout
53 // for the timeout and replace the constant with the appropriate macro
91 msg = "WARNING: replace constant {} with timeout in {}".format(C, fn)
94 // ** Handle call sites where a timeout is specified by an expression
160 msg = "WARNING: use K_SECONDS() for timeout in {}".format(fn)
169 msg = "NOTE: use K_SECONDS() for timeout in {}".format(fn)
173 // ** position that requires a timeout value.
[all …]
A Dms_timeout.cocci8 // are now timeout values which are opaque non-integral values that
18 // ** Handle millisecond timeout as the last parameter
20 // Match identifier passed as timeout
81 // ** Handle millisecond timeout as second from last parameter
83 // Match identifier passed as timeout
139 // ** Handle millisecond timeout as third from last parameter
141 // Match identifier passed as timeout
/scripts/pylib/power-twister-harness/stm32l562e_dk/
A DSerialHandler.py11 def __init__(self, port: str, baudrate: int = 9600, timeout: float = 1.0):
21 self.timeout = timeout
31 self.port, self.baudrate, timeout=self.timeout
/scripts/west_commands/runners/
A Dtrace32.py34 timeout: int = 60) -> None:
41 self.timeout = timeout
81 timeout=args.timeout)
126 self.check_call(cmd, timeout=self.timeout)
A Dcanopen_program.py56 confirm_only=True, timeout=DEFAULT_TIMEOUT, argument
69 self.timeout = timeout
131 timeout=args.timeout,
152 status = self.downloader.wait_for_flash_status_ok(self.timeout)
171 self.downloader.wait_for_flash_status_ok(self.timeout)
174 status = self.downloader.wait_for_flash_status_ok(self.timeout)
181 self.downloader.wait_for_bootup(self.timeout)
301 def wait_for_bootup(self, timeout=DEFAULT_TIMEOUT): argument
305 self.node.nmt.wait_for_bootup(timeout=timeout)
309 def wait_for_flash_status_ok(self, timeout=DEFAULT_TIMEOUT): argument
[all …]
A Dspi_burn.py16 def __init__(self, cfg, addr, spiburn, iceman, timeout, gdb_port, gdb_ex, erase=False): argument
22 self.timeout = int(timeout)
71 cfg, address, spiburn, iceman, args.timeout, args.gdb_port, args.gdb_ex, args.erase
103 if time.time() - start > self.timeout:
/scripts/pylib/pytest-twister-harness/src/twister_harness/device/
A Ddevice_adapter.py137 def readline(self, timeout: float | None = None, print_output: bool = True) -> str:
142 timeout = timeout or self.base_timeout
144 data = self._read_from_queue(timeout)
157 timeout: float | None = None,
173 timeout = timeout or self.base_timeout
178 timeout_time: float = time.time() + timeout
253 def _read_from_queue(self, timeout: float) -> str:
256 data: str | object = self._device_read_queue.get(timeout=timeout)
A Dutils.py40 def terminate_process(proc: subprocess.Popen, timeout: float = 0.5) -> None:
50 proc.wait(timeout=timeout)
A Dhardware_adapter.py117 stdout, _ = process.communicate(timeout=self._flashing_timeout)
151 timeout=self.base_timeout,
197 self._serial_pty_proc.communicate(timeout=self.base_timeout)
274 def _run_custom_script(script_path: str | Path, timeout: float) -> None:
277 stdout, stderr = proc.communicate(timeout=timeout)
286 proc.communicate(timeout=timeout)
A Dfifo_handler.py23 def __init__(self, fifo_path: str | Path, timeout: float):
36 self._timeout = timeout
94 self._open_fifo_thread.join(timeout=1)
97 self._opening_monitor_thread.join(timeout=1)
/scripts/west_commands/tests/
A Dtest_canopen_program.py48 …node_id, context, program_number, confirm, confirm_only, timeout, sdo_retries, sdo_timeout, downlo…
59 if timeout:
60 args.extend(['--timeout', str(timeout)])
105 mock.wait_for_flash_status_ok.assert_called_with(timeout)
116 mock.wait_for_flash_status_ok.assert_called_with(timeout)
122 mock.wait_for_bootup.assert_called_once_with(timeout)
/scripts/pylib/twister/twisterlib/
A Dhandlers.py415 timeout += 120
416 return timeout
534 def run_custom_script(script, timeout): argument
537 stdout, stderr = proc.communicate(timeout=timeout)
728 timeout = 30
730 timeout = script_param.get("pre_script_timeout", timeout)
796 timeout = 30
798 timeout = script_param.get("post_flash_timeout", timeout)
840 timeout = 30
842 timeout = script_param.get("post_script_timeout", timeout)
[all …]
A Dharness.py379 def pytest_run(self, timeout): argument
382 self.run_command(cmd, timeout)
505 def run_command(self, cmd, timeout): argument
516 reader_t.join(timeout)
523 proc.wait(timeout)
1047 def ctest_run(self, timeout): argument
1051 self.run_command(cmd, timeout)
1084 def run_command(self, cmd, timeout): argument
1093 reader_t.join(timeout)
1100 proc.wait(timeout)
/scripts/pylib/pytest-twister-harness/tests/fixtures/
A Dmcumgr_fixture_test.py27 mcumgr.image_upload('/path/to/image', timeout=100)
30 mcumgr.image_upload('/path/to/image', slot=2, timeout=100)
/scripts/utils/
A Dtls_creds_installer.py154 def wait_for_prompt(val1='uart:~$ ', val2=None, timeout=15, store=None): argument
174 while not found and timeout != 0:
188 if timeout > 0:
189 timeout -= serial_timeout
210 if timeout == 0:
296 timeout=serial_timeout,
/scripts/tests/twister_blackbox/test_data/tests/always_timeout/dummy/
A Dtest_data.yaml2 timeout: 10
/scripts/tests/twister_blackbox/test_data/tests/always_warning/dummy/
A Dtest_data.yaml2 timeout: 10
/scripts/pylib/pytest-twister-harness/tests/helpers/
A Dshell_test.py11 shell = Shell(shell_simulator_adapter, timeout=5.0)
/scripts/pylib/display-twister-harness/camera_shield/
A Dconfig.yaml22 timeout: 30
/scripts/pylib/display-twister-harness/
A Dtest_display.py38 timeout=testcase_config.get("timeout", 30),
/scripts/footprint/
A Dtrack.py53 … subprocess.check_output(cmd, stderr=subprocess.STDOUT, timeout=120, universal_newlines=True)
/scripts/tests/twister/
A Dtest_handlers.py57 type(instance.testsuite).timeout = mock.PropertyMock(return_value=60)
976 def raise_timeout_fn(timeout=-1): argument
977 if raise_timeout and timeout != -1:
978 raise subprocess.TimeoutExpired(None, timeout)
991 timeout = 60
994 DeviceHandler.run_custom_script(script, timeout)
1002 mock.call.communicate(timeout=timeout),
1876 timeout, argument
1891 type(mocked_instance.testsuite).timeout = mock.PropertyMock(return_value=timeout)
/scripts/pylib/pytest-twister-harness/src/twister_harness/
A Dfixtures.py74 shell = Shell(dut, timeout=20.0)

Completed in 45 milliseconds

12