Merge pull request #148491 from Artturin/sendkeydelay

nixos/test-driver: add 10ms delay to send_key
This commit is contained in:
Artturi 2021-12-04 02:13:49 +02:00 committed by GitHub
commit 610b719d91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: