Lines Matching +full:dead +full:- +full:time

4 # Copyright (c) 2018-2022 Intel Corporation
8 # SPDX-License-Identifier: Apache-2.0
22 import time
39 print("Install pyserial python module with pip to use --device-testing option.")
45 pass # "--device-serial-pty" option is not supported on Windows OS
67 time.sleep(0.5)
123 _d_suite = detected_suite_names[-len(expected_suite_names):]
217 timeout_time = time.time() + self.get_test_timeout()
219 this_timeout = timeout_time - time.time()
226 line_decoded = self.line.decode('utf-8', "replace")
229 stripped_line = stripped_line[:-len(suffix)].rstrip()
241 timeout_time = time.time() + 30
243 timeout_time = time.time() + 2
271 command = ["renode-test",
272 "--variable", "KEYWORDS:" + keywords,
273 "--variable", "ELF:@" + elf,
274 "--variable", "RESC:@" + resc,
275 "--variable", "UART:" + uart]
282 command = [self.generator_cmd, "-C", self.get_default_domain_build_dir(), target]
291 command = ["valgrind", "--error-exitcode=2",
292 "--leak-check=full",
293 "--suppressions=" + ZEPHYR_BASE + "/scripts/valgrind.supp",
294 "--log-file=" + self.build_dir + "/valgrind.log",
295 "--track-origins=yes",
300 command.append(f"--seed={self.seed}")
350 start_time = time.time()
376 handler_time = time.time() - start_time
427 time.sleep(0.1)
443 time.sleep(0.001)
447 # wait for more time
449 time.sleep(0.001)
467 for sl in serial_line.decode('utf-8', 'ignore').splitlines(keepends=True):
468 log_out_fp.write(strip_ansi_sequences(sl).encode('utf-8'))
549 command = ["west", "flash", "--skip-rebuild", "-d", self.build_dir]
553 # 1) bare: --west-flash
555 # 2) with a value: --west-flash="--board-id=42"
556 # This results in options.west_flash == "--board-id=42"
557 # 3) Multiple values: --west-flash="--board-id=42,--erase"
558 # This results in options.west_flash == "--board-id=42 --erase"
563 command.append("--runner")
571 command_extra_args.append("--dev-id")
574 command_extra_args.append("--esp-device")
580 and product == "STLINK-V3"
582 command_extra_args.append("--cmd-pre-init")
584 elif runner == "openocd" and product == "EDBG CMSIS-DAP":
585 command_extra_args.append("--cmd-pre-init")
587 elif runner == "openocd" and product == "LPC-LINK2 CMSIS-DAP":
588 command_extra_args.append("--cmd-pre-init")
591 command.append("--dev-id")
595 # --probe=#<number> select by probe index
596 # --probe=<serial number> select by probe serial number
597 command.append(f"--probe={board_id}")
599 command.append(f"--tool-opt=sn={board_id}")
607 command.append('--')
610 command = [self.generator_cmd, "-C", self.build_dir, "flash"]
629 logger.debug(f"Terminating serial-pty:'{ser_pty}'")
633 logger.debug(f"Terminated serial-pty:'{ser_pty}', stdout:'{stdout}', stderr:'{stderr}'")
635 logger.debug(f"Terminated serial-pty:'{ser_pty}'")
675 time.sleep(1)
761 start_time = time.time()
837 handler_time = time.time() - start_time
875 self.fifo_fn = os.path.join(instance.build_dir, "qemu-fifo")
892 """get process CPU time.
894 The guest virtual time in QEMU icount mode isn't host time and
896 process execution time to mostly simulate the time of guest OS.
940 start_time = time.time()
956 this_timeout = int((timeout_time - time.time()) * 1000)
964 # of not enough CPU time scheduled by host for
968 timeout_time = time.time() + (timeout - cpu_time)
987 c = in_fp.read(1).decode("utf-8")
1023 # take some time.
1027 timeout_time = time.time() + 30
1029 timeout_time = time.time() + 2
1032 handler_time = time.time() - start_time
1040 # Oh well, as long as it's dead! User probably sent Ctrl-C
1051 self.fifo_fn = os.path.join(self.instance.build_dir, "qemu-fifo")
1062 command += ["-C", sysbuild_build_dir, "run"]
1095 thread_max_time = time.time() + self.get_test_timeout()
1117 # in that case kill -9 QEMU process directly and leave
1135 self.thread.join(max(thread_max_time - time.time(), 0))
1178 self.fifo_fn = os.path.join(instance.build_dir, "qemu-fifo")
1193 """get process CPU time.
1195 The guest virtual time in QEMU icount mode isn't host time and
1197 process execution time to mostly simulate the time of guest OS.
1218 # Oh well, as long as it's dead! User probably sent Ctrl-C
1243 command += ["-C", sysbuild_build_dir, "run"]
1266 time.sleep(1)
1284 start_time = time.time()
1295 this_timeout = int((timeout_time - time.time()) * 1000)
1300 # of not enough CPU time scheduled by host for
1304 timeout_time = time.time() + (timeout - cpu_time)
1331 c = c.decode("utf-8")
1367 # take some time.
1371 timeout_time = time.time() + 30
1373 timeout_time = time.time() + 2
1378 handler_time = time.time() - start_time
1406 thread_max_time = time.time() + self.get_test_timeout()
1411 if (thread_max_time - time.time()) < 0:
1415 time.sleep(0.5)