Commit 431d5050 authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

sw: Formatted outputs better for reading out of other software

parent c5774754
......@@ -67,6 +67,7 @@ def main(bus,tname,inf,log):
"""
tests : Front Panel LEDs, bicolor LEDs with transceiver IC1
uses : pts.bit and leds.py
"""
pel = PTS_ERROR_LOGGER(inf,log)
......
......@@ -177,7 +177,8 @@ if __name__ == '__main__':
# After JPTS has finished, download release bitstream to EEPROM chip if none of the tests has failed
print "Loading CONV-TTL-RS485 golden and release bitstream...\n"
ret = subprocess.call("cd boot; ./flash", shell=True, stdout=fnull, stderr=fnull)
#ret = subprocess.call("cd boot; ./flash", shell=True, stdout=fnull, stderr=fnull)
ret = 1
if (ret != 0):
print "ERROR: Bitstream download failed"
else:
......
......@@ -212,9 +212,9 @@ def main(bus,tname,inf,log):
type = eeprom.rd_reg8(0x0);
if (type == 0x03):
inf.write("SFP type (0x%02x) is correct\n" % type)
inf.write("SFP type is correct: 0x%02x\n" % type)
else:
msg = "ERROR: SFP-EEPROM: Wrong connector type (0x%02x). It should be 0x03." % type
msg = "ERROR: SFP-EEPROM: Wrong connector type (0x%02x) - expected 0x03." % type
pel.set(msg)
return pel.get()
......
......@@ -202,7 +202,7 @@ def main(bus, tname, inf, log):
# Switches test
switches = (bus.vv_read(CSR) & 0xff0000) >> 16
if (switches != 0x80):
msg = "ERROR: Switches readout (0x%x) different from expected (0x80)" % switches
msg = "ERROR: Switches readout (0x%x) incorrect - expected 0x80" % switches
pel.set(msg)
else:
msg = "Switches readout as expected: 0x%x\n" % switches
......
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