Test issues.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sun, 6 Jun 2010 00:23:55 +0000 (00:23 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sun, 6 Jun 2010 00:23:55 +0000 (00:23 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@604 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/goodfet.msp430

index e60733d..0cca0fd 100755 (executable)
@@ -89,12 +89,13 @@ if(sys.argv[1]=="selftest"):
         print "Test not run.  Try again.";
         exit(0);
     
         print "Test not run.  Try again.";
         exit(0);
     
-    for i in range(0x3020,0x3030):
-        ret=client.peek8(i);
+    for i in range(0x3020,0x3030,2):
+        ret=client.peek16(i);
         if ret!=0:
             errors=errors+1;
             print "Failure at 0x%04x, returned %02xh." % (i,ret);
         if ret!=0:
             errors=errors+1;
             print "Failure at 0x%04x, returned %02xh." % (i,ret);
-    if ret==0:
+        
+    if errors==0:
         print "Test succeeded.  Board is ready to ship."
     else:
         print "Test failed.  Is it soldered correctly?"
         print "Test succeeded.  Board is ready to ship."
     else:
         print "Test failed.  Is it soldered correctly?"