Commit b0b9d9de authored by Dimitris Lampridis's avatar Dimitris Lampridis

Make pts.py a bit more robust and verbose

parent 0e6be66a
...@@ -153,9 +153,9 @@ if __name__ == '__main__': ...@@ -153,9 +153,9 @@ if __name__ == '__main__':
print "ERROR: Bitstream download fail. Check JTAG connectivity." print "ERROR: Bitstream download fail. Check JTAG connectivity."
else: else:
# Run JPTS in another shell script; JPTS will handle running each of the test scripts # Run JPTS in another shell script; JPTS will handle running each of the test scripts
cmd = "xterm -e ./jpts -s %s %s" % (sn1, sn2) cmd = "xterm -e ./jpts -d -s %s %s" % (sn1, sn2)
print "Running tests :%s\n" % (cmd) print "Running tests :%s\n" % (cmd)
subprocess.call(cmd, shell=True, stdout=fnull, stderr=fnull) subprocess.call(cmd, shell=True)
ret = subprocess.call("grep FAIL log/*.log", shell=True, stdout=fnull, stderr=fnull) ret = subprocess.call("grep FAIL log/*.log", shell=True, stdout=fnull, stderr=fnull)
if (ret == 0): if (ret == 0):
...@@ -208,6 +208,7 @@ if __name__ == '__main__': ...@@ -208,6 +208,7 @@ if __name__ == '__main__':
#Read unique board ID #Read unique board ID
try:
IDMS = bus.vv_read(UIDREGMS) IDMS = bus.vv_read(UIDREGMS)
IDLS = bus.vv_read(UIDREGLS) IDLS = bus.vv_read(UIDREGLS)
...@@ -236,6 +237,9 @@ if __name__ == '__main__': ...@@ -236,6 +237,9 @@ if __name__ == '__main__':
f.close() f.close()
except:
print ""
print "BOARD FAILED..."
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# We're done, turn off the VME crate # We're done, turn off the VME crate
...@@ -263,4 +267,3 @@ if __name__ == '__main__': ...@@ -263,4 +267,3 @@ if __name__ == '__main__':
sys.exit(1) sys.exit(1)
else: else:
ok = raw_input("--> To exit PTS, type 'ok': ") ok = raw_input("--> To exit PTS, type 'ok': ")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment