prepare tests to run with configuration parameters

This commit is contained in:
maniacbug
2011-07-13 16:01:45 -07:00
parent af37c345e8
commit 7640852edf
3 changed files with 19 additions and 12 deletions

View File

@@ -12,8 +12,13 @@ def read_until(token):
return line
ser = serial.Serial(sys.argv[1], 57600, timeout=5)
ser = serial.Serial(sys.argv[1], 57600, timeout=5, dsrdtr=False, rtscts=False)
read_until("+READY")
ser.write(" ")
line = read_until("+OK")
ser.close()
if (line.find("PASS") != -1):
sys.exit(0)
else: