From 49aa031a95bf4ac850cb46ec0362249ba16d001b Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Fri, 10 Jul 2009 13:26:52 +0200 Subject: [PATCH] Sleep after each char send through screen which makes testing even slower but more reliable --- test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index c787c58..f6bbe17 100755 --- a/test.py +++ b/test.py @@ -21,7 +21,8 @@ JB = "+" # Jump backwards EX = "\t" # EXPAND def send(s,session): - os.system("screen -x %s -X stuff '%s'" % (session,s)) + os.system("screen -x %s -X stuff '%s'" % (session,s)) + time.sleep(.005) def type(str, session): """