mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #148491 from Artturin/sendkeydelay
nixos/test-driver: add 10ms delay to send_key
This commit is contained in:
commit
610b719d91
@ -916,6 +916,7 @@ class Machine:
|
||||
def send_key(self, key: str) -> None:
|
||||
key = CHAR_TO_KEY.get(key, key)
|
||||
self.send_monitor_command("sendkey {}".format(key))
|
||||
time.sleep(0.01)
|
||||
|
||||
def start(self) -> None:
|
||||
if self.booted:
|
||||
|
Loading…
Reference in New Issue
Block a user