From 0c0aae1789c2aa4eb1276e4828e6a7908f513f77 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Wed, 20 Mar 2024 06:47:42 +0000 Subject: [PATCH] x --- .../instances/test-automation-scripts/serial-device.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hacking/nix/scope/world/instances/test-automation-scripts/serial-device.py b/hacking/nix/scope/world/instances/test-automation-scripts/serial-device.py index f27a7ee9a..370be10a6 100644 --- a/hacking/nix/scope/world/instances/test-automation-scripts/serial-device.py +++ b/hacking/nix/scope/world/instances/test-automation-scripts/serial-device.py @@ -18,10 +18,10 @@ def main(): def run(args): child = pexpect.spawn(args.simulate, encoding='utf-8') child.logfile = sys.stdout - child.expect('echo> ', timeout=10) - time.sleep(5) - child.sendline('xxx') - child.expect('[x][x][x]', timeout=10) + child.expect('echo> ', timeout=5) + time.sleep(1) + child.send('xxx') + child.expect('\[x\]\[x\]\[x\]', timeout=5) print() if __name__ == '__main__':