Permalink
Browse files

[testudo] fix bug with version check

Abort test immediately if this check fails

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information...
1 parent 530221f commit e78a684ff9a176374e79e47a966c88352b0374c6 @hxw hxw committed Apr 2, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 testudo/src/ui2.py
View
@@ -249,7 +249,8 @@ def runTest(self):
else:
self.write('FAIL: FLASH S/N(%s) != %s\n' % (psn, serialNumber), 'fail-text')
raise StopTestException('Serial Number mismatch')
- elif line.startswith('VERION:'):
+
+ elif line.startswith('VERSION:'):
current_version = line.split(' ')[-1]
if '. Boot Test Program' == line[1:]:
@@ -272,10 +273,12 @@ def runTest(self):
s.write('Y')
elif '*VERSION*' == line:
+ self.write('INFO: check "%s" against "%s"\n' % (current_version, versionNumber))
if current_version == versionNumber:
s.write('Y')
else:
s.write('N')
+ raise StopTestException('Version Number mismatch')
else:
i = psu.current

0 comments on commit e78a684

Please sign in to comment.