Commit 238bc6ce authored by Matthieu Cattin's avatar Matthieu Cattin

test00: Fix bug in exception handling.

Was badly concatenating the returned string.
parent bb84cbed
...@@ -34,9 +34,9 @@ def main (default_directory='.'): ...@@ -34,9 +34,9 @@ def main (default_directory='.'):
# Constants declaration # Constants declaration
#FMC_ADC_ADDR = '1a39:0004/1a39:0004@000B:0000' #FMC_ADC_ADDR = '1a39:0004/1a39:0004@000B:0000'
FMC_ADC_BITSTREAM = '../firmwares/spec_fmcadc100m14b4cha.bin' FMC_ADC_BITSTREAM = '../firmwares/spec_fmcadc100m14b4cha.bin'
EXPECTED_BITSTREAM_TYPE = 0x1 EXPECTED_BITSTREAM_TYPE = 0x1
start_test_time = time.time() start_test_time = time.time()
print "================================================================================" print "================================================================================"
print "Test00 start\n" print "Test00 start\n"
...@@ -60,7 +60,7 @@ def main (default_directory='.'): ...@@ -60,7 +60,7 @@ def main (default_directory='.'):
try: try:
carrier = CFmcAdc100mSpec(spec, EXPECTED_BITSTREAM_TYPE) carrier = CFmcAdc100mSpec(spec, EXPECTED_BITSTREAM_TYPE)
except FmcAdc100mSpecOperationError as e: except FmcAdc100mSpecOperationError as e:
raise PtsCritical("The test is stopped due to the following critical error: " + e) raise PtsCritical("The test is stopped due to the following critical error: %s" % e)
# Print bitsteam type # Print bitsteam type
bitstream_type = carrier.get_bitstream_type() bitstream_type = carrier.get_bitstream_type()
......
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